Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
b75f6c68
Commit
b75f6c68
authored
Jan 22, 2016
by
Grzegorz Bizon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add tests for clicking a row in build artifacts browser
parent
8be4e545
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
0 deletions
+19
-0
features/project/builds/artifacts.feature
features/project/builds/artifacts.feature
+9
-0
features/steps/project/builds/artifacts.rb
features/steps/project/builds/artifacts.rb
+10
-0
No files found.
features/project/builds/artifacts.feature
View file @
b75f6c68
...
@@ -51,3 +51,12 @@ Feature: Project Builds Artifacts
...
@@ -51,3 +51,12 @@ Feature: Project Builds Artifacts
And
I click artifacts browse button
And
I click artifacts browse button
And
I click a link to file within build artifacts
And
I click a link to file within build artifacts
Then
download of a file extracted from build artifacts should start
Then
download of a file extracted from build artifacts should start
@javascript
Scenario
:
I
click on a row in an artifacts table
Given
recent build has artifacts available
And
recent build has artifacts metadata available
When
I visit recent build details page
And
I click artifacts browse button
And
I click a first row within build artifacts table
Then
page with a coresponding path is loading
features/steps/project/builds/artifacts.rb
View file @
b75f6c68
...
@@ -73,4 +73,14 @@ class Spinach::Features::ProjectBuildsArtifacts < Spinach::FeatureSteps
...
@@ -73,4 +73,14 @@ class Spinach::Features::ProjectBuildsArtifacts < Spinach::FeatureSteps
expect
(
response_json
[
:archive
]).
to
end_with
(
'build_artifacts.zip'
)
expect
(
response_json
[
:archive
]).
to
end_with
(
'build_artifacts.zip'
)
expect
(
response_json
[
:entry
]).
to
eq
Base64
.
encode64
(
'ci_artifacts.txt'
)
expect
(
response_json
[
:entry
]).
to
eq
Base64
.
encode64
(
'ci_artifacts.txt'
)
end
end
step
'I click a first row within build artifacts table'
do
row
=
first
(
'tr[data-link]'
)
@row_path
=
row
[
'data-link'
]
row
.
click
end
step
'page with a coresponding path is loading'
do
expect
(
current_path
).
to
eq
@row_path
end
end
end
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment