Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDouwe Maan <douwe@gitlab.com>2016-01-26 16:32:00 +0300
committerDouwe Maan <douwe@gitlab.com>2016-01-26 16:32:00 +0300
commit8ab939c2c02e76cd6d183a85b493691562e4a36d (patch)
tree18288c4201a90a479b07f6247ab4e459c6863a2f /features/steps
parent9ae820ad2eab0159259e214a0cac79e85ad7351f (diff)
parentb75f6c68e591b1a6a279c454b7c5d1f6f8ecbbf8 (diff)
Merge branch 'ci/test-build-artifacts-scripts' into 'master'
Add tests for clicking a row in build artifacts browser This adds a feature tests for clicking a row, which is handled by javascript event. /cc @ayufan See merge request !2551
Diffstat (limited to 'features/steps')
-rw-r--r--features/steps/project/builds/artifacts.rb10
1 files changed, 10 insertions, 0 deletions
diff --git a/features/steps/project/builds/artifacts.rb b/features/steps/project/builds/artifacts.rb
index 25f2f4e837c..1bdb57af9d1 100644
--- a/features/steps/project/builds/artifacts.rb
+++ b/features/steps/project/builds/artifacts.rb
@@ -73,4 +73,14 @@ class Spinach::Features::ProjectBuildsArtifacts < Spinach::FeatureSteps
expect(response_json[:archive]).to end_with('build_artifacts.zip')
expect(response_json[:entry]).to eq Base64.encode64('ci_artifacts.txt')
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