Refactor syntax on some cukes
This commit is contained in:
parent
7d6129b7f3
commit
6cd9c9c2d0
2 changed files with 12 additions and 16 deletions
|
|
@ -11,7 +11,7 @@ Feature: infinite scroll
|
|||
And I wait for the ajax to finish
|
||||
|
||||
Scenario: on the main stream by activity
|
||||
And I follow "commented on"
|
||||
When I follow "commented on"
|
||||
And I wait for the ajax to finish
|
||||
Then I should see 15 posts
|
||||
And I should see "alice - 26 - #seeded"
|
||||
|
|
|
|||
|
|
@ -5,17 +5,14 @@ Feature: posting from the main page
|
|||
I want to tell the world I am eating a yogurt
|
||||
|
||||
Background:
|
||||
Given I am on the home page
|
||||
And a user with username "bob"
|
||||
Given a user with username "bob"
|
||||
And a user with username "alice"
|
||||
|
||||
When I sign in as "bob@bob.bob"
|
||||
And I sign in as "bob@bob.bob"
|
||||
And a user with username "bob" is connected with "alice"
|
||||
And I have an aspect called "PostingTo"
|
||||
And I have an aspect called "NotPostingThingsHere"
|
||||
And I have user with username "alice" in an aspect called "PostingTo"
|
||||
And I have user with username "alice" in an aspect called "NotPostingThingsHere"
|
||||
|
||||
And I am on the home page
|
||||
|
||||
Scenario: post a text-only message to all aspects
|
||||
|
|
@ -42,14 +39,14 @@ Feature: posting from the main page
|
|||
|
||||
Scenario: post a photo with text
|
||||
Given I expand the publisher
|
||||
And I attach the file "spec/fixtures/button.png" to hidden element "file" within "#file-upload"
|
||||
When I attach the file "spec/fixtures/button.png" to hidden element "file" within "#file-upload"
|
||||
And I fill in "status_message_fake_text" with "Look at this dog"
|
||||
And I press "Share"
|
||||
And I wait for the ajax to finish
|
||||
And I go to the aspects page
|
||||
Then I should see a "img" within ".stream_element div.photo_attachments"
|
||||
And I should see "Look at this dog" within ".stream_element"
|
||||
Then I log out
|
||||
When I log out
|
||||
And I sign in as "alice@alice.alice"
|
||||
And I go to "bob@bob.bob"'s page
|
||||
Then I should see a "img" within ".stream_element div.photo_attachments"
|
||||
|
|
@ -57,14 +54,14 @@ Feature: posting from the main page
|
|||
|
||||
Scenario: post a photo without text
|
||||
Given I expand the publisher
|
||||
And I attach the file "spec/fixtures/button.png" to hidden element "file" within "#file-upload"
|
||||
When I attach the file "spec/fixtures/button.png" to hidden element "file" within "#file-upload"
|
||||
And I wait for the ajax to finish
|
||||
Then I should see an uploaded image within the photo drop zone
|
||||
And I press "Share"
|
||||
When I press "Share"
|
||||
And I wait for the ajax to finish
|
||||
And I go to the aspects page
|
||||
Then I should see a "img" within ".stream_element div.photo_attachments"
|
||||
Then I log out
|
||||
When I log out
|
||||
And I sign in as "alice@alice.alice"
|
||||
And I go to "bob@bob.bob"'s page
|
||||
Then I should see a "img" within ".stream_element div.photo_attachments"
|
||||
|
|
@ -118,16 +115,15 @@ Feature: posting from the main page
|
|||
And I wait for the ajax to finish
|
||||
And I go to "bob@bob.bob"'s page
|
||||
Then I should not see "Here is a post for you to hide"
|
||||
And I am on the aspects page
|
||||
When I am on the aspects page
|
||||
Then I should not see "Here is a post for you to hide"
|
||||
|
||||
Scenario: delete one of my posts
|
||||
When I expand the publisher
|
||||
And I fill in "status_message_fake_text" with "I am eating a yogurt"
|
||||
Given I expand the publisher
|
||||
When I fill in "status_message_fake_text" with "I am eating a yogurt"
|
||||
And I press "Share"
|
||||
And I wait for the ajax to finish
|
||||
|
||||
When I go to the aspects page
|
||||
And I go to the aspects page
|
||||
And I hover over the ".stream_element"
|
||||
And I preemptively confirm the alert
|
||||
And I click to delete the first post
|
||||
|
|
|
|||
Loading…
Reference in a new issue