Refactor notifications.feature - we were testing the same thing with two different scenarios.
This commit is contained in:
parent
7f81892245
commit
92a0b568c3
1 changed files with 10 additions and 17 deletions
|
|
@ -4,26 +4,19 @@ Feature: Notifications
|
|||
As a User
|
||||
I want to get notifications
|
||||
|
||||
Background:
|
||||
Given a user with email "bob@bob.bob"
|
||||
And a user with email "alice@alice.alice"
|
||||
When I sign in as "bob@bob.bob"
|
||||
And I am on "alice@alice.alice"'s page
|
||||
|
||||
And I add the person to my 1st aspect
|
||||
|
||||
And I go to the destroy user session page
|
||||
Background:
|
||||
Given a user with email "bob@bob.bob"
|
||||
And a user with email "alice@alice.alice"
|
||||
When I sign in as "bob@bob.bob"
|
||||
And I am on "alice@alice.alice"'s page
|
||||
And I add the person to my 1st aspect
|
||||
And I go to the destroy user session page
|
||||
|
||||
Scenario: someone shares with me
|
||||
When I sign in as "alice@alice.alice"
|
||||
And I follow "notifications" in the header
|
||||
And I wait for the ajax to finish
|
||||
And I follow "View all"
|
||||
|
||||
Then I should see "started sharing with you"
|
||||
|
||||
Scenario: notification popup
|
||||
When I sign in as "alice@alice.alice"
|
||||
And I click the notification badge
|
||||
And I wait for the ajax to finish
|
||||
Then the notification dropdown should be visible
|
||||
Then I should see "started sharing with you"
|
||||
When I follow "View all"
|
||||
Then I should see "started sharing with you"
|
||||
|
|
|
|||
Loading…
Reference in a new issue