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 | 2 | Background: |
3 | 3 | Given I sign in as a user |
4 | 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 | 7 | @javascript |
9 | 8 | Scenario: I click line 1 in file |
... | ... | @@ -83,4 +82,4 @@ Feature: Project Multiselect Blob |
83 | 82 | And I go forward in history |
84 | 83 | And I go forward in history |
85 | 84 | Then I should see "L1-5" as URI fragment |
86 | - And I should see lines 1-5 highlighted | |
87 | 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 | 264 | visit project_blob_path(@project, File.join(ValidCommit::ID, ValidCommit::BLOB_FILE_PATH)) |
265 | 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 | 271 | step 'I visit project source page for "8470d70"' do |
268 | 272 | visit project_tree_path(@project, "8470d70") |
269 | 273 | end | ... | ... |