summaryrefslogtreecommitdiff
path: root/features
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2014-06-12 21:36:38 +0300
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2014-06-12 21:36:38 +0300
commit11728851bf0b1b06e14858b08b1afcec44ec3d46 (patch)
treec2025523bed520822963ef9442cd7915a2e5d5ff /features
parent86fa07402467272a28ed7983268f9012eb85879d (diff)
downloadgitlab-ce-11728851bf0b1b06e14858b08b1afcec44ec3d46.tar.gz
Fix blob highlight tests
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Diffstat (limited to 'features')
-rw-r--r--features/project/source/multiselect_blob.feature5
-rw-r--r--features/steps/shared/paths.rb4
2 files changed, 6 insertions, 3 deletions
diff --git a/features/project/source/multiselect_blob.feature b/features/project/source/multiselect_blob.feature
index 3038c0814ad..0fdfe7ce938 100644
--- a/features/project/source/multiselect_blob.feature
+++ b/features/project/source/multiselect_blob.feature
@@ -2,8 +2,7 @@ Feature: Project Multiselect Blob
Background:
Given I sign in as a user
And I own project "Shop"
- And I visit project source page
- And I click on "Gemfile.lock" file in repo
+ And I visit "Gemfile.lock" file in repo
@javascript
Scenario: I click line 1 in file
@@ -83,4 +82,4 @@ Feature: Project Multiselect Blob
And I go forward in history
And I go forward in history
Then I should see "L1-5" as URI fragment
- And I should see lines 1-5 highlighted \ No newline at end of file
+ And I should see lines 1-5 highlighted
diff --git a/features/steps/shared/paths.rb b/features/steps/shared/paths.rb
index d36ff7e3884..449f2f9c5ef 100644
--- a/features/steps/shared/paths.rb
+++ b/features/steps/shared/paths.rb
@@ -264,6 +264,10 @@ module SharedPaths
visit project_blob_path(@project, File.join(ValidCommit::ID, ValidCommit::BLOB_FILE_PATH))
end
+ step 'I visit "Gemfile.lock" file in repo' do
+ visit project_blob_path(@project, File.join(root_ref, 'Gemfile.lock'))
+ end
+
step 'I visit project source page for "8470d70"' do
visit project_tree_path(@project, "8470d70")
end