Línea 57... |
Línea 57... |
57 |
And I log in as "student1"
|
57 |
And I log in as "student1"
|
58 |
And I open messaging
|
58 |
And I open messaging
|
59 |
And I click on "Contacts" "link"
|
59 |
And I click on "Contacts" "link"
|
60 |
And I should see "Student 4" in the "//*[@data-section='contacts']" "xpath_element"
|
60 |
And I should see "Student 4" in the "//*[@data-section='contacts']" "xpath_element"
|
Línea -... |
Línea 61... |
- |
|
61 |
|
- |
|
62 |
Scenario: Send a 'contact request' to someone to add a contact in the profile page
|
- |
|
63 |
Given I am on the "student4" "user > profile" page logged in as student3
|
- |
|
64 |
And I should see "Add to contacts"
|
- |
|
65 |
When I click on "Add to contacts" "link"
|
- |
|
66 |
Then I should see "Contact request sent"
|
- |
|
67 |
And I log out
|
- |
|
68 |
And I am on the "student3" "user > profile" page logged in as student4
|
- |
|
69 |
And I should see "Waiting to be added as contact"
|
- |
|
70 |
And I open messaging
|
- |
|
71 |
And I click on "Contacts" "link"
|
- |
|
72 |
And I click on "Requests" "link_or_button"
|
- |
|
73 |
And I click on "Student 3 Would like to contact you" "link"
|
- |
|
74 |
And I should see "Accept and add to contacts"
|
- |
|
75 |
And I click on "Accept and add to contacts" "link_or_button"
|
- |
|
76 |
And I should not see "Accept and add to contacts"
|
- |
|
77 |
And I log out
|
- |
|
78 |
And I am on the "student4" "user > profile" page logged in as student3
|
- |
|
79 |
And I should see "Remove from contacts"
|
61 |
|
80 |
|
62 |
Scenario: Decline a 'contact request' from someone
|
81 |
Scenario: Decline a 'contact request' from someone
|
63 |
Given I log in as "student1"
|
82 |
Given I log in as "student1"
|
64 |
Then I open messaging
|
83 |
Then I open messaging
|
65 |
And I select "Student 3" user in messaging
|
84 |
And I select "Student 3" user in messaging
|