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:
authorArtem Sidorenko <artem.sidorenko@telekom.de>2015-08-18 18:46:57 +0300
committerArtem Sidorenko <artem.sidorenko@telekom.de>2015-08-19 14:47:03 +0300
commit07190227395674715522f7a6aef30d4235b5d55c (patch)
treea61bf43fa37efadc97bdca8c434909f81f733c2f /features/steps/admin
parent15cdf551fc612495f4bdbb02bf109feee33a471f (diff)
Spinach tests
Diffstat (limited to 'features/steps/admin')
-rw-r--r--features/steps/admin/projects.rb16
1 files changed, 16 insertions, 0 deletions
diff --git a/features/steps/admin/projects.rb b/features/steps/admin/projects.rb
index 655f1895279..17233f89f38 100644
--- a/features/steps/admin/projects.rb
+++ b/features/steps/admin/projects.rb
@@ -2,6 +2,13 @@ class Spinach::Features::AdminProjects < Spinach::FeatureSteps
include SharedAuthentication
include SharedPaths
include SharedAdmin
+ include SharedProject
+
+ step 'I should see all non-archived projects' do
+ Project.non_archived.each do |p|
+ expect(page).to have_content p.name_with_namespace
+ end
+ end
step 'I should see all projects' do
Project.all.each do |p|
@@ -9,6 +16,15 @@ class Spinach::Features::AdminProjects < Spinach::FeatureSteps
end
end
+ step 'I check "Show archived projects"' do
+ page.check 'Show archived projects'
+ click_button "Search"
+ end
+
+ step 'I should see "archived" label' do
+ expect(page).to have_xpath("//span[@class='label label-warning']", text: 'archived')
+ end
+
step 'I click on first project' do
click_link Project.first.name_with_namespace
end