merging multiple consecutive "I (should|should not) see" lines into one

This commit is contained in:
Devendra 2012-08-17 15:37:28 +05:30
parent 03858a07f7
commit 7b9fcc2b3d
3 changed files with 7 additions and 15 deletions

View file

@ -86,8 +86,7 @@ Feature: following and being followed
When I sign in as "bob@bob.bob"
And I am on "alice@alice.alice"'s page
Then I should see "Besties"
Then I should see "Mention"
Then I should see "Besties" and "Mention"
Then I should not see "Message" within "#profile"
Scenario: interacting with the profile page of someone who follows you but who you do not follow
@ -95,8 +94,7 @@ Feature: following and being followed
And I am on "bob@bob.bob"'s page
Then I should see "Add contact"
Then I should not see "Mention" within "#profile"
Then I should not see "Message" within "#profile"
Then I should not see "Mention" and "Message" within "#profile"
Scenario: interacting with the profile page of someone you follow who also follows you
Given I sign in as "alice@alice.alice"
@ -108,6 +106,4 @@ Feature: following and being followed
And I wait for the ajax to finish
When I go to "bob@bob.bob"'s page
Then I should see "All Aspects"
And I should see "Mention"
And I should see "Message"
Then I should see "All Aspects" and "Mention" and "Message"

View file

@ -29,8 +29,7 @@ Scenario: Toggling nsfw state
And I sign in as "laura@officeworkers.com"
Then I should not see "I love 0bj3ction4bl3 c0nt3nt!"
When I toggle nsfw posts
Then I should see "I love 0bj3ction4bl3 c0nt3nt!"
And I should see "Sexy Senators Gone Wild!"
Then I should see "I love 0bj3ction4bl3 c0nt3nt!" and "Sexy Senators Gone Wild!"
#cookies
#When I refresh the page
@ -39,8 +38,7 @@ Scenario: Toggling nsfw state
#hiding
When I toggle nsfw posts
Then I should not see "I love 0bj3ction4bl3 c0nt3nt!"
And I should not see "Sexy Senators Gone Wild!"
Then I should not see "I love 0bj3ction4bl3 c0nt3nt!" and "Sexy Senators Gone Wild!"
Scenario: Resharing an nsfw post
Given a nsfw user with email "tommy@pr0nking.com"

View file

@ -174,16 +174,14 @@ Feature: posting from the main page
And I am on the aspects page
And I select only "PostingTo" aspect
Then I should see "I am eating a yogurt"
Then I should see "And cornflakes also"
Then I should see "I am eating a yogurt" and "And cornflakes also"
When I am on the aspects page
And I select only "Besties" aspect
Then I should not see "I am eating a yogurt"
Then I should see "And cornflakes also"
When I am on the aspects page
And I select only "NotPostingThingsHere" aspect
Then I should not see "I am eating a yogurt"
Then I should not see "And cornflakes also"
Then I should not see "I am eating a yogurt" and "And cornflakes also"
# (NOTE) make this a jasmine spec
Scenario: reject deletion one of my posts