diff options
author | Tim Zallmann <tzallmann@gitlab.com> | 2017-06-07 11:49:41 +0200 |
---|---|---|
committer | Tim Zallmann <tzallmann@gitlab.com> | 2017-06-07 11:49:41 +0200 |
commit | ebd0767fc76c820088efce236a57e36619f08b6d (patch) | |
tree | a8917c7f7924a95f9bd3e51ac4a41dd8baef44fe /features | |
parent | 6b7b7f9f1953ac61f4b2de7a8a8a2f30365aa3b4 (diff) | |
download | gitlab-ce-ebd0767fc76c820088efce236a57e36619f08b6d.tar.gz |
Fixed New Project Top Menu Test
Diffstat (limited to 'features')
-rw-r--r-- | features/dashboard/new_project_menu.feature | 2 | ||||
-rw-r--r-- | features/steps/dashboard/new_project_top_menu.rb | 17 |
2 files changed, 18 insertions, 1 deletions
diff --git a/features/dashboard/new_project_menu.feature b/features/dashboard/new_project_menu.feature index c339fb0e897..5456c9fd4dd 100644 --- a/features/dashboard/new_project_menu.feature +++ b/features/dashboard/new_project_menu.feature @@ -1,5 +1,5 @@ @dashboard -Feature: New Project through top menu +Feature: New Project top menu Background: Given I sign in as a user And I own project "Shop" diff --git a/features/steps/dashboard/new_project_top_menu.rb b/features/steps/dashboard/new_project_top_menu.rb new file mode 100644 index 00000000000..364be964efd --- /dev/null +++ b/features/steps/dashboard/new_project_top_menu.rb @@ -0,0 +1,17 @@ +class Spinach::Features::NewProjectTopMenu < Spinach::FeatureSteps + include SharedAuthentication + include SharedPaths + include SharedProject + + step 'I click "New project" in top right menu' do + page.within '.header-content' do + click_link "New project" + end + end + + step 'I see "New Project" page' do + expect(page).to have_content('Project path') + expect(page).to have_content('Project name') + end + +end |