summaryrefslogtreecommitdiff
path: root/features
diff options
context:
space:
mode:
authorTim Zallmann <tzallmann@gitlab.com>2017-06-06 16:46:30 +0200
committerTim Zallmann <tzallmann@gitlab.com>2017-06-07 11:15:02 +0200
commit288b2e71c28ddff1ae6372bc8256d9f972aa6c27 (patch)
tree0c4b862767286cdae48f695fcb2811a0b90a8b1c /features
parente05e530fe6f77b207adc9d4541955c952a291aa6 (diff)
downloadgitlab-ce-288b2e71c28ddff1ae6372bc8256d9f972aa6c27.tar.gz
Added First Test for top right menu
Diffstat (limited to 'features')
-rw-r--r--features/dashboard/new_project_menu.feature11
-rw-r--r--features/steps/dashboard/new_project.rb6
2 files changed, 17 insertions, 0 deletions
diff --git a/features/dashboard/new_project_menu.feature b/features/dashboard/new_project_menu.feature
new file mode 100644
index 00000000000..c339fb0e897
--- /dev/null
+++ b/features/dashboard/new_project_menu.feature
@@ -0,0 +1,11 @@
+@dashboard
+Feature: New Project through top menu
+Background:
+ Given I sign in as a user
+ And I own project "Shop"
+ And I visit dashboard page
+ And I click "New project" in top right menu
+
+ @javascript
+ Scenario: I should see New Projects page
+ Then I see "New Project" page
diff --git a/features/steps/dashboard/new_project.rb b/features/steps/dashboard/new_project.rb
index 766aa9b0468..530fd6f7bdb 100644
--- a/features/steps/dashboard/new_project.rb
+++ b/features/steps/dashboard/new_project.rb
@@ -9,6 +9,12 @@ class Spinach::Features::NewProject < Spinach::FeatureSteps
end
end
+ 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')