Refactor aspect cucumber feature - now happy path only.
This commit is contained in:
parent
8193f2e350
commit
cb09249058
2 changed files with 14 additions and 21 deletions
14
features/manages_aspects.feature
Normal file
14
features/manages_aspects.feature
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
@aspects @javascript
|
||||
Feature: User manages aspects
|
||||
In order to share with a limited group
|
||||
As a User
|
||||
I want to create new aspects
|
||||
|
||||
Scenario: creating an aspect
|
||||
Given I am signed in
|
||||
When I follow "Manage" in the header
|
||||
And I follow "Add a new aspect"
|
||||
And I fill in "Name" with "Dorm Mates" in the modal window
|
||||
And I press "Create" in the modal window
|
||||
Then I should see "Dorm Mates" in the header
|
||||
And I should see "Your aspect 'Dorm Mates' is empty."
|
||||
|
|
@ -1,21 +0,0 @@
|
|||
@aspects @javascript
|
||||
Feature: User creates an aspect
|
||||
In order to share with a limited group
|
||||
As a User
|
||||
I want to create a new aspect
|
||||
|
||||
Background:
|
||||
Given I am signed in
|
||||
And I follow "Manage" in the header
|
||||
And I follow "Add a new aspect"
|
||||
|
||||
Scenario: success
|
||||
Given I fill in "Name" with "Dorm Mates" in the modal window
|
||||
When I press "Create" in the modal window
|
||||
Then I should see "Dorm Mates" in the header
|
||||
And I should see "Your aspect 'Dorm Mates' is empty."
|
||||
|
||||
Scenario: I omit the name
|
||||
Given I fill in "Name" with "" in the modal window
|
||||
When I press "Create" in the modal window
|
||||
Then I should see "Aspect creation failed."
|
||||
Loading…
Reference in a new issue