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:
Diffstat (limited to 'features/steps/project/search_code.rb')
-rw-r--r--features/steps/project/search_code.rb17
1 files changed, 17 insertions, 0 deletions
diff --git a/features/steps/project/search_code.rb b/features/steps/project/search_code.rb
new file mode 100644
index 00000000000..d117b019a15
--- /dev/null
+++ b/features/steps/project/search_code.rb
@@ -0,0 +1,17 @@
+class ProjectSearchCode < Spinach::FeatureSteps
+ include SharedAuthentication
+ include SharedProject
+ include SharedPaths
+
+ When 'I search for term "Welcome to GitLab"' do
+ fill_in "search", with: "Welcome to GitLab"
+ click_button "Go"
+ click_link 'Repository Code'
+ end
+
+ Then 'I should see files from repository containing "Welcome to GitLab"' do
+ page.should have_content "Welcome to GitLab"
+ page.should have_content "GitLab is a free project and repository management application"
+ end
+
+end