Added First Test for top right menu

This commit is contained in:
Tim Zallmann 2017-06-06 16:46:30 +02:00
parent e05e530fe6
commit 288b2e71c2
2 changed files with 17 additions and 0 deletions

View 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

View file

@ -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')