fix cucumber
This commit is contained in:
parent
73d4bf4327
commit
fb5bc2805d
7 changed files with 18 additions and 19 deletions
|
|
@ -1,9 +1,8 @@
|
||||||
%li{:data=>{:guid=>aspect.id}, :class => ("dull" if contacts.size == 0)}
|
%li{:data=>{:guid=>aspect.id}, :class => ("dull" if contacts.size == 0)}
|
||||||
.right
|
.right
|
||||||
%b
|
%b
|
||||||
= link_to t('contacts', :count => contacts.size), edit_aspect_path(aspect), :rel => 'facebox'
|
= link_to t('contacts', :count => contacts.size), edit_aspect_path(aspect), :rel => 'facebox', :class => 'contact-count'
|
||||||
%b
|
%b
|
||||||
/= link_to aspect.name, aspect_path(aspect), :rel => 'facebox', :class => 'name'
|
|
||||||
= link_for_aspect(aspect, :class => 'hard_aspect_link')
|
= link_for_aspect(aspect, :class => 'hard_aspect_link')
|
||||||
%br
|
%br
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,7 @@ Feature: commenting
|
||||||
And I fill in "status_message_fake_text" with "Look at this dog"
|
And I fill in "status_message_fake_text" with "Look at this dog"
|
||||||
And I press "Share"
|
And I press "Share"
|
||||||
And I wait for the ajax to finish
|
And I wait for the ajax to finish
|
||||||
And I follow "Home"
|
And I follow "All aspects"
|
||||||
Then I should see "Look at this dog" within ".stream_element"
|
Then I should see "Look at this dog" within ".stream_element"
|
||||||
And I should see a "img" within ".stream_element div.photo_attachments"
|
And I should see a "img" within ".stream_element div.photo_attachments"
|
||||||
Then I log out
|
Then I log out
|
||||||
|
|
|
||||||
|
|
@ -45,7 +45,7 @@ Feature: disconnecting users
|
||||||
|
|
||||||
Scenario: remove contact from the aspect edit page
|
Scenario: remove contact from the aspect edit page
|
||||||
When I go to the home page
|
When I go to the home page
|
||||||
And I follow "Besties" within "#aspect_listings"
|
And I press the first ".contact-count" within "#aspect_listings"
|
||||||
|
|
||||||
And I wait for the ajax to finish
|
And I wait for the ajax to finish
|
||||||
And I preemptively confirm the alert
|
And I preemptively confirm the alert
|
||||||
|
|
@ -57,7 +57,7 @@ Feature: disconnecting users
|
||||||
|
|
||||||
Scenario: cancel removing contact from the contact show page
|
Scenario: cancel removing contact from the contact show page
|
||||||
When I go to the home page
|
When I go to the home page
|
||||||
And I follow "Besties" within "#aspect_listings"
|
And I press the first ".contact-count" within "#aspect_listings"
|
||||||
And I wait for the ajax to finish
|
And I wait for the ajax to finish
|
||||||
|
|
||||||
And I preemptively reject the alert
|
And I preemptively reject the alert
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@ Feature: User manages aspects
|
||||||
|
|
||||||
Scenario: creating an aspect from manage aspects page
|
Scenario: creating an aspect from manage aspects page
|
||||||
Given I am signed in
|
Given I am signed in
|
||||||
When I follow "Home" in the header
|
When I follow "All aspects" in the header
|
||||||
And I follow "Manage aspects"
|
And I follow "Manage aspects"
|
||||||
And I follow "+ Add a new aspect"
|
And I follow "+ Add a new aspect"
|
||||||
And I fill in "Name" with "Dorm Mates" in the modal window
|
And I fill in "Name" with "Dorm Mates" in the modal window
|
||||||
|
|
@ -15,7 +15,7 @@ Feature: User manages aspects
|
||||||
|
|
||||||
Scenario: creating an aspect from homepage
|
Scenario: creating an aspect from homepage
|
||||||
Given I am signed in
|
Given I am signed in
|
||||||
When I follow "Home" in the header
|
When I follow "All aspects" in the header
|
||||||
And I follow "+" in the header
|
And I follow "+" in the header
|
||||||
And I fill in "Name" with "losers" in the modal window
|
And I fill in "Name" with "losers" in the modal window
|
||||||
And I press "Create" in the modal window
|
And I press "Create" in the modal window
|
||||||
|
|
|
||||||
|
|
@ -7,9 +7,9 @@ Feature: managing contact requests
|
||||||
|
|
||||||
Scenario: seeing contact request notifications
|
Scenario: seeing contact request notifications
|
||||||
When I am on the home page
|
When I am on the home page
|
||||||
Then I should see "Home" in the header
|
Then I should see "All aspects" in the header
|
||||||
Then I should see "Home" in the header
|
Then I should see "All aspects" in the header
|
||||||
When I follow "Home"
|
When I follow "All aspects"
|
||||||
Then I should see "new request!"
|
Then I should see "new request!"
|
||||||
|
|
||||||
@javascript
|
@javascript
|
||||||
|
|
|
||||||
|
|
@ -21,18 +21,18 @@ Feature: posting
|
||||||
Given I expand the publisher
|
Given I expand the publisher
|
||||||
When I fill in "status_message_fake_text" with "I am eating a yogurt"
|
When I fill in "status_message_fake_text" with "I am eating a yogurt"
|
||||||
And I press "Share"
|
And I press "Share"
|
||||||
And I follow "Home"
|
And I follow "All aspects"
|
||||||
Then I should see "I am eating a yogurt" within ".stream_element"
|
Then I should see "I am eating a yogurt" within ".stream_element"
|
||||||
|
|
||||||
Scenario: delete a post
|
Scenario: delete a post
|
||||||
Given I expand the publisher
|
Given I expand the publisher
|
||||||
When I fill in "status_message_fake_text" with "I am eating a yogurt"
|
When I fill in "status_message_fake_text" with "I am eating a yogurt"
|
||||||
And I press "Share"
|
And I press "Share"
|
||||||
And I follow "Home"
|
And I follow "All aspects"
|
||||||
And I hover over the post
|
And I hover over the post
|
||||||
And I preemptively confirm the alert
|
And I preemptively confirm the alert
|
||||||
And I click to delete the first post
|
And I click to delete the first post
|
||||||
And I follow "Home"
|
And I follow "All aspects"
|
||||||
Then I should not see "I am eating a yogurt"
|
Then I should not see "I am eating a yogurt"
|
||||||
|
|
||||||
Scenario Outline: post to one aspect
|
Scenario Outline: post to one aspect
|
||||||
|
|
@ -41,7 +41,7 @@ Feature: posting
|
||||||
And I expand the publisher
|
And I expand the publisher
|
||||||
And I fill in "status_message_fake_text" with "I am eating a yogurt"
|
And I fill in "status_message_fake_text" with "I am eating a yogurt"
|
||||||
And I press "Share"
|
And I press "Share"
|
||||||
And I follow "Home"
|
And I follow "All aspects"
|
||||||
And I follow "<aspect>"
|
And I follow "<aspect>"
|
||||||
Then I should <see> "I am eating a yogurt"
|
Then I should <see> "I am eating a yogurt"
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -28,8 +28,8 @@ Feature: saved state
|
||||||
But I should have aspect "Closed 1" "not selected"
|
But I should have aspect "Closed 1" "not selected"
|
||||||
But I should have aspect "Closed 2" "not selected"
|
But I should have aspect "Closed 2" "not selected"
|
||||||
|
|
||||||
And I follow "Home"
|
And I follow "All aspects"
|
||||||
Then I should have aspect "Home" "selected"
|
Then I should have aspect "All aspects" "selected"
|
||||||
|
|
||||||
Scenario: home persists across sessions
|
Scenario: home persists across sessions
|
||||||
Given I am signed in
|
Given I am signed in
|
||||||
|
|
@ -37,9 +37,9 @@ Feature: saved state
|
||||||
And I have an aspect called "Closed 2"
|
And I have an aspect called "Closed 2"
|
||||||
And I am on the aspects page
|
And I am on the aspects page
|
||||||
When I follow "Closed 1"
|
When I follow "Closed 1"
|
||||||
When I follow "Home"
|
When I follow "All aspects"
|
||||||
|
|
||||||
Then I should have aspect "Home" "selected"
|
Then I should have aspect "All aspects" "selected"
|
||||||
Then I should have aspect "Closed 1" "not selected"
|
Then I should have aspect "Closed 1" "not selected"
|
||||||
Then I should have aspect "Closed 2" "not selected"
|
Then I should have aspect "Closed 2" "not selected"
|
||||||
|
|
||||||
|
|
@ -51,6 +51,6 @@ Feature: saved state
|
||||||
And I am signed in
|
And I am signed in
|
||||||
|
|
||||||
Then I should be on the aspects page
|
Then I should be on the aspects page
|
||||||
Then I should have aspect "Home" "selected"
|
Then I should have aspect "All aspects" "selected"
|
||||||
Then I should have aspect "Closed 1" "not selected"
|
Then I should have aspect "Closed 1" "not selected"
|
||||||
Then I should have aspect "Closed 2" "not selected"
|
Then I should have aspect "Closed 2" "not selected"
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue