From fce10f0e95546a3adf64a5864441bd05699ec40c Mon Sep 17 00:00:00 2001 From: Amaia Anabitarte Date: Fri, 5 Apr 2019 23:39:05 +0200 Subject: [PATCH] MDL-64669 core_message: Waiting for buttons to hide before login out --- message/tests/behat/message_drawer_manage_contacts.feature | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/message/tests/behat/message_drawer_manage_contacts.feature b/message/tests/behat/message_drawer_manage_contacts.feature index 07190be7228..b129e24dbf3 100644 --- a/message/tests/behat/message_drawer_manage_contacts.feature +++ b/message/tests/behat/message_drawer_manage_contacts.feature @@ -31,6 +31,7 @@ Feature: Manage contacts And I open contact menu And I click on "Add to contacts" "link" And I click on "Add" "button" + And I should see "Contact request sent" And I log out And I log in as "student4" 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" Then I should see "Accept and add to contacts" 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 in as "student1" And I open messaging @@ -54,6 +56,7 @@ Feature: Manage contacts And I open contact menu And I click on "Add to contacts" "link" And I click on "Add" "button" + And I should see "Contact request sent" And I log out And I log in as "student3" 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" Then I should see "Accept and add to contacts" And I click on "Decline" "link_or_button" + And I should not see "Accept and add to contacts" And I open contact menu Then I should see "Add to contacts" in the "//div[@data-region='header-container']" "xpath_element"