diff options
| author | Artem Sidorenko <artem.sidorenko@telekom.de> | 2015-08-18 17:46:57 +0200 |
|---|---|---|
| committer | Artem Sidorenko <artem.sidorenko@telekom.de> | 2015-08-19 13:47:03 +0200 |
| commit | 07190227395674715522f7a6aef30d4235b5d55c (patch) | |
| tree | a61bf43fa37efadc97bdca8c434909f81f733c2f /features/steps/shared | |
| parent | 15cdf551fc612495f4bdbb02bf109feee33a471f (diff) | |
| download | gitlab-ce-07190227395674715522f7a6aef30d4235b5d55c.tar.gz | |
Spinach tests
Diffstat (limited to 'features/steps/shared')
| -rw-r--r-- | features/steps/shared/paths.rb | 4 | ||||
| -rw-r--r-- | features/steps/shared/project.rb | 23 |
2 files changed, 27 insertions, 0 deletions
diff --git a/features/steps/shared/paths.rb b/features/steps/shared/paths.rb index bb0cd9ac105..ca8fbb49101 100644 --- a/features/steps/shared/paths.rb +++ b/features/steps/shared/paths.rb @@ -39,6 +39,10 @@ module SharedPaths visit edit_group_path(Group.find_by(name: "Owned")) end + step 'I visit group "Owned" projects page' do + visit projects_group_path(Group.find_by(name: "Owned")) + end + step 'I visit group "Guest" page' do visit group_path(Group.find_by(name: "Guest")) end diff --git a/features/steps/shared/project.rb b/features/steps/shared/project.rb index 9ee2e5dfbed..ccbe8f96a4c 100644 --- a/features/steps/shared/project.rb +++ b/features/steps/shared/project.rb @@ -93,6 +93,29 @@ module SharedProject end # ---------------------------------------- + # Visibility of archived project + # ---------------------------------------- + + step 'archived project "Archive"' do + create :project, :public, archived: true, name: 'Archive' + end + + step 'I should not see project "Archive"' do + project = Project.find_by(name: "Archive") + expect(page).not_to have_content project.name_with_namespace + end + + step 'I should see project "Archive"' do + project = Project.find_by(name: "Archive") + expect(page).to have_content project.name_with_namespace + end + + step 'project "Archive" has comments' do + project = Project.find_by(name: "Archive") + 2.times { create(:note_on_issue, project: project) } + end + + # ---------------------------------------- # Visibility level # ---------------------------------------- |
