diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2016-03-09 09:51:59 +0100 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2016-03-09 09:51:59 +0100 |
commit | c674ffe0e045e46fd0f2754b77b1042444d95388 (patch) | |
tree | ed4f8e01fff7be78054bccc2f10e2cdc342e12ca /features | |
parent | e8cd04e831a2db36c4029f2c193fc40d2568c79e (diff) | |
parent | 7a311c23494b26d5212cac98318273fc9d2c69d1 (diff) | |
download | gitlab-ce-c674ffe0e045e46fd0f2754b77b1042444d95388.tar.gz |
Merge branch 'improve-archived-projects'
Diffstat (limited to 'features')
-rw-r--r-- | features/dashboard/archived_projects.feature | 5 | ||||
-rw-r--r-- | features/explore/projects.feature | 2 | ||||
-rw-r--r-- | features/steps/dashboard/archived_projects.rb | 4 |
3 files changed, 10 insertions, 1 deletions
diff --git a/features/dashboard/archived_projects.feature b/features/dashboard/archived_projects.feature index 69b3a776441..bed9282f1c6 100644 --- a/features/dashboard/archived_projects.feature +++ b/features/dashboard/archived_projects.feature @@ -10,3 +10,8 @@ Feature: Dashboard Archived Projects Scenario: I should see non-archived projects on dashboard Then I should see "Shop" project link And I should not see "Forum" project link + + Scenario: I toggle show of archived projects on dashboard + When I click "Show archived projects" link + Then I should see "Shop" project link + And I should see "Forum" project link diff --git a/features/explore/projects.feature b/features/explore/projects.feature index 7df6b6f09ba..092e18d1b86 100644 --- a/features/explore/projects.feature +++ b/features/explore/projects.feature @@ -140,4 +140,4 @@ Feature: Explore Projects When I visit the explore starred projects Then I should see project "Community" And I should see project "Internal" - And I should see project "Archive" + And I should not see project "Archive" diff --git a/features/steps/dashboard/archived_projects.rb b/features/steps/dashboard/archived_projects.rb index 36e092f50c6..6510f8d9b32 100644 --- a/features/steps/dashboard/archived_projects.rb +++ b/features/steps/dashboard/archived_projects.rb @@ -19,4 +19,8 @@ class Spinach::Features::DashboardArchivedProjects < Spinach::FeatureSteps step 'I should see "Forum" project link' do expect(page).to have_link "Forum" end + + step 'I click "Show archived projects" link' do + click_link "Show archived projects" + end end |