fixed the viewing a requests profile scenario
This commit is contained in:
parent
9e7f03236e
commit
58bc4f7387
3 changed files with 6 additions and 6 deletions
|
|
@ -13,13 +13,13 @@ Feature: managing contact requests
|
||||||
Then I should see "new request!"
|
Then I should see "new request!"
|
||||||
|
|
||||||
@javascript
|
@javascript
|
||||||
Scenario: viewing a request's profile
|
Scenario: viewing a requests profile
|
||||||
When I am on the aspects manage page
|
When I am on the aspects manage page
|
||||||
Then I should see "1" within "#notification_badge"
|
Then I should see "1" within "#notification_badge"
|
||||||
When I click on the contact request
|
When I click on the contact request
|
||||||
And I wait for the request's profile page to load
|
And I wait for the requestors profile page to load
|
||||||
Then I should be on the requestor's profile page
|
Then I should be on the requestors profile
|
||||||
And I should see "You have an incoming request from this person"
|
And I should see "wants to share with you"
|
||||||
|
|
||||||
@javascript
|
@javascript
|
||||||
Scenario: accepting a contact request
|
Scenario: accepting a contact request
|
||||||
|
|
|
||||||
|
|
@ -51,7 +51,7 @@ When /^I wait for the aspects page to load$/ do
|
||||||
wait_until { current_path == aspects_path }
|
wait_until { current_path == aspects_path }
|
||||||
end
|
end
|
||||||
|
|
||||||
When /^I wait for the request's profile page to load$/ do
|
When /^I wait for the requestors profile page to load$/ do
|
||||||
wait_until { current_path == person_path(Request.where(:recipient_id => @me.person.id).first.sender) }
|
wait_until { current_path == person_path(Request.where(:recipient_id => @me.person.id).first.sender) }
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,7 @@ module NavigationHelpers
|
||||||
edit_person_path(@me.person)
|
edit_person_path(@me.person)
|
||||||
when /^my acceptance form page$/
|
when /^my acceptance form page$/
|
||||||
accept_user_invitation_path(:invitation_token => @me.invitation_token)
|
accept_user_invitation_path(:invitation_token => @me.invitation_token)
|
||||||
when /^the requestor's profile page$/
|
when /^the requestors profile$/
|
||||||
person_path(Request.where(:recipient_id => @me.person.id).first.sender)
|
person_path(Request.where(:recipient_id => @me.person.id).first.sender)
|
||||||
when /^"([^\"]*)"'s page$/
|
when /^"([^\"]*)"'s page$/
|
||||||
person_path(User.find_by_email($1).person)
|
person_path(User.find_by_email($1).person)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue