From 3efb002aaac6419286d785a9fa88582365ce485f Mon Sep 17 00:00:00 2001 From: Sara Arjona Date: Tue, 2 Apr 2019 20:28:41 +0200 Subject: [PATCH] MDL-65213 core_message: fix random failures when declining contacts --- message/tests/behat/message_drawer_manage_contacts.feature | 2 ++ 1 file changed, 2 insertions(+) diff --git a/message/tests/behat/message_drawer_manage_contacts.feature b/message/tests/behat/message_drawer_manage_contacts.feature index e1ec87f2638..07190be7228 100644 --- a/message/tests/behat/message_drawer_manage_contacts.feature +++ b/message/tests/behat/message_drawer_manage_contacts.feature @@ -39,6 +39,7 @@ Feature: Manage contacts Then I should see "2" in the "//div[@data-region='view-contacts']//*[@data-region='contact-request-count']" "xpath_element" And I click on "Requests" "link_or_button" 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 log out And I log in as "student1" @@ -61,6 +62,7 @@ Feature: Manage contacts Then I should see "1" in the "//div[@data-region='view-contacts']//*[@data-region='contact-request-count']" "xpath_element" And I click on "Requests" "link_or_button" 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 open contact menu Then I should see "Add to contacts" in the "//div[@data-region='header-container']" "xpath_element"