Added First Test for top right menu
This commit is contained in:
parent
e05e530fe6
commit
288b2e71c2
2 changed files with 17 additions and 0 deletions
11
features/dashboard/new_project_menu.feature
Normal file
11
features/dashboard/new_project_menu.feature
Normal file
|
@ -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
|
|
@ -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')
|
||||
|
|
Loading…
Reference in a new issue