Commit 11728851bf0b1b06e14858b08b1afcec44ec3d46
1 parent
86fa0740
Exists in
spb-stable
and in
2 other branches
Fix blob highlight tests
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Showing
2 changed files
with
6 additions
and
3 deletions
Show diff stats
features/project/source/multiselect_blob.feature
@@ -2,8 +2,7 @@ Feature: Project Multiselect Blob | @@ -2,8 +2,7 @@ Feature: Project Multiselect Blob | ||
2 | Background: | 2 | Background: |
3 | Given I sign in as a user | 3 | Given I sign in as a user |
4 | And I own project "Shop" | 4 | And I own project "Shop" |
5 | - And I visit project source page | ||
6 | - And I click on "Gemfile.lock" file in repo | 5 | + And I visit "Gemfile.lock" file in repo |
7 | 6 | ||
8 | @javascript | 7 | @javascript |
9 | Scenario: I click line 1 in file | 8 | Scenario: I click line 1 in file |
@@ -83,4 +82,4 @@ Feature: Project Multiselect Blob | @@ -83,4 +82,4 @@ Feature: Project Multiselect Blob | ||
83 | And I go forward in history | 82 | And I go forward in history |
84 | And I go forward in history | 83 | And I go forward in history |
85 | Then I should see "L1-5" as URI fragment | 84 | Then I should see "L1-5" as URI fragment |
86 | - And I should see lines 1-5 highlighted | ||
87 | \ No newline at end of file | 85 | \ No newline at end of file |
86 | + And I should see lines 1-5 highlighted |
features/steps/shared/paths.rb
@@ -264,6 +264,10 @@ module SharedPaths | @@ -264,6 +264,10 @@ module SharedPaths | ||
264 | visit project_blob_path(@project, File.join(ValidCommit::ID, ValidCommit::BLOB_FILE_PATH)) | 264 | visit project_blob_path(@project, File.join(ValidCommit::ID, ValidCommit::BLOB_FILE_PATH)) |
265 | end | 265 | end |
266 | 266 | ||
267 | + step 'I visit "Gemfile.lock" file in repo' do | ||
268 | + visit project_blob_path(@project, File.join(root_ref, 'Gemfile.lock')) | ||
269 | + end | ||
270 | + | ||
267 | step 'I visit project source page for "8470d70"' do | 271 | step 'I visit project source page for "8470d70"' do |
268 | visit project_tree_path(@project, "8470d70") | 272 | visit project_tree_path(@project, "8470d70") |
269 | end | 273 | end |