summaryrefslogtreecommitdiff
path: root/features/steps/shared/paths.rb
diff options
context:
space:
mode:
authorCiro Santilli <ciro.santilli@gmail.com>2014-09-28 11:52:14 +0200
committerCiro Santilli <ciro.santilli@gmail.com>2014-12-30 18:19:48 +0100
commit18fa1550251655ce84a0886caaab7262fbeb9c51 (patch)
tree8ce5d20bc5b6d67d0edd0d3d3be42f3deac3de30 /features/steps/shared/paths.rb
parent394e2ec50b066b5e911b749aa13192ab50e703d4 (diff)
downloadgitlab-ce-18fa1550251655ce84a0886caaab7262fbeb9c51.tar.gz
Add tests for disabled blob edit button cases.
Diffstat (limited to 'features/steps/shared/paths.rb')
-rw-r--r--features/steps/shared/paths.rb10
1 files changed, 10 insertions, 0 deletions
diff --git a/features/steps/shared/paths.rb b/features/steps/shared/paths.rb
index b60d290ae9c..e657fceb704 100644
--- a/features/steps/shared/paths.rb
+++ b/features/steps/shared/paths.rb
@@ -183,6 +183,11 @@ module SharedPaths
visit project_tree_path(@project, root_ref)
end
+ step 'I visit a binary file in the repo' do
+ visit project_blob_path(@project, File.join(
+ root_ref, 'files/images/logo-black.png'))
+ end
+
step "I visit my project's commits page" do
visit project_commits_path(@project, root_ref, {limit: 5})
end
@@ -385,6 +390,11 @@ module SharedPaths
visit project_path(project)
end
+ step 'I visit project "Community" source page' do
+ project = Project.find_by(name: 'Community')
+ visit project_tree_path(project, root_ref)
+ end
+
step 'I visit project "Internal" page' do
project = Project.find_by(name: "Internal")
visit project_path(project)