MDL-65213 core_message: fix random failures when declining contacts
authorSara Arjona <sara@moodle.com>
Tue, 2 Apr 2019 18:26:26 +0000 (20:26 +0200)
committerSara Arjona <sara@moodle.com>
Tue, 2 Apr 2019 18:26:26 +0000 (20:26 +0200)
message/tests/behat/message_drawer_manage_contacts.feature

index e1ec87f..07190be 100644 (file)
@@ -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"