MDL-64669 core_message: Waiting for buttons to hide before login out

This commit is contained in:
Amaia Anabitarte 2019-04-05 23:39:05 +02:00
parent fd72e75443
commit fce10f0e95

View file

@ -31,6 +31,7 @@ Feature: Manage contacts
And I open contact menu And I open contact menu
And I click on "Add to contacts" "link" And I click on "Add to contacts" "link"
And I click on "Add" "button" And I click on "Add" "button"
And I should see "Contact request sent"
And I log out And I log out
And I log in as "student4" And I log in as "student4"
Then I should see "2" in the "//*[@data-region='count-container']" "xpath_element" Then I should see "2" in the "//*[@data-region='count-container']" "xpath_element"
@ -41,6 +42,7 @@ Feature: Manage contacts
And I click on "Student 1 Would like to contact you" "link" And I click on "Student 1 Would like to contact you" "link"
Then I should see "Accept and add to contacts" Then I should see "Accept and add to contacts"
And I click on "Accept and add to contacts" "link_or_button" And I click on "Accept and add to contacts" "link_or_button"
And I should not see "Accept and add to contacts"
And I log out And I log out
And I log in as "student1" And I log in as "student1"
And I open messaging And I open messaging
@ -54,6 +56,7 @@ Feature: Manage contacts
And I open contact menu And I open contact menu
And I click on "Add to contacts" "link" And I click on "Add to contacts" "link"
And I click on "Add" "button" And I click on "Add" "button"
And I should see "Contact request sent"
And I log out And I log out
And I log in as "student3" And I log in as "student3"
Then I should see "1" in the "//*[@data-region='count-container']" "xpath_element" Then I should see "1" in the "//*[@data-region='count-container']" "xpath_element"
@ -64,6 +67,7 @@ Feature: Manage contacts
And I click on "Student 1 Would like to contact you" "link" And I click on "Student 1 Would like to contact you" "link"
Then I should see "Accept and add to contacts" Then I should see "Accept and add to contacts"
And I click on "Decline" "link_or_button" And I click on "Decline" "link_or_button"
And I should not see "Accept and add to contacts"
And I open contact menu And I open contact menu
Then I should see "Add to contacts" in the "//div[@data-region='header-container']" "xpath_element" Then I should see "Add to contacts" in the "//div[@data-region='header-container']" "xpath_element"