Fix cucumber features for text instead of message
This commit is contained in:
parent
1b0445563e
commit
3c1b5a10df
4 changed files with 6 additions and 6 deletions
|
|
@ -25,7 +25,7 @@ Feature: Close Account
|
||||||
When I sign in as "alice@alice.alice"
|
When I sign in as "alice@alice.alice"
|
||||||
And I am on the home page
|
And I am on the home page
|
||||||
And I expand the publisher
|
And I expand the publisher
|
||||||
And I fill in "status_message_fake_message" with "Hi, @{Bob Jones; bob_jones@example.org} long time no see"
|
And I fill in "status_message_fake_text" with "Hi, @{Bob Jones; bob_jones@example.org} long time no see"
|
||||||
And I press "Share"
|
And I press "Share"
|
||||||
And I log out
|
And I log out
|
||||||
Then I sign in as "bob@bob.bob"
|
Then I sign in as "bob@bob.bob"
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,7 @@ Feature: commenting
|
||||||
When I sign in as "alice@alice.alice"
|
When I sign in as "alice@alice.alice"
|
||||||
And I am on the home page
|
And I am on the home page
|
||||||
And I expand the publisher
|
And I expand the publisher
|
||||||
And I fill in "status_message_fake_message" with "Look at this dog"
|
And I fill in "status_message_fake_text" with "Look at this dog"
|
||||||
And I attach the file "spec/fixtures/button.png" to hidden element "file" within "#file-upload"
|
And I attach the file "spec/fixtures/button.png" to hidden element "file" within "#file-upload"
|
||||||
And I press "Share"
|
And I press "Share"
|
||||||
And I follow "Home"
|
And I follow "Home"
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,7 @@ Feature: posting
|
||||||
And I have an aspect called "Family"
|
And I have an aspect called "Family"
|
||||||
And I am on the home page
|
And I am on the home page
|
||||||
And I expand the publisher
|
And I expand the publisher
|
||||||
When I fill in "status_message_fake_message" 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 "Home"
|
||||||
Then I should see "I am eating a yogurt" within ".stream_element"
|
Then I should see "I am eating a yogurt" within ".stream_element"
|
||||||
|
|
@ -23,7 +23,7 @@ Feature: posting
|
||||||
And I have an aspect called "Family"
|
And I have an aspect called "Family"
|
||||||
And I am on the home page
|
And I am on the home page
|
||||||
And I expand the publisher
|
And I expand the publisher
|
||||||
When I fill in "status_message_fake_message" 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 "Home"
|
||||||
And I hover over the post
|
And I hover over the post
|
||||||
|
|
@ -42,7 +42,7 @@ Feature: posting
|
||||||
When I follow "PostTo"
|
When I follow "PostTo"
|
||||||
And I wait for the ajax to finish
|
And I wait for the ajax to finish
|
||||||
And I expand the publisher
|
And I expand the publisher
|
||||||
And I fill in "status_message_fake_message" 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 "Home"
|
||||||
And I follow "<aspect>"
|
And I follow "<aspect>"
|
||||||
|
|
|
||||||
|
|
@ -24,7 +24,7 @@ module NavigationHelpers
|
||||||
when /^my account settings page$/
|
when /^my account settings page$/
|
||||||
edit_user_path(@me)
|
edit_user_path(@me)
|
||||||
when /^the photo page for "([^\"]*)"'s post "([^\"]*)"$/
|
when /^the photo page for "([^\"]*)"'s post "([^\"]*)"$/
|
||||||
photo_path(User.find_by_email($1).posts.find_by_message($2))
|
photo_path(User.find_by_email($1).posts.find_by_text($2))
|
||||||
when /^"(\/.*)"/
|
when /^"(\/.*)"/
|
||||||
$1
|
$1
|
||||||
else
|
else
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue