diff --git a/src/addons/messages/tests/behat/basic_usage.feature b/src/addons/messages/tests/behat/basic_usage.feature index bd35f8756..db30ff172 100755 --- a/src/addons/messages/tests/behat/basic_usage.feature +++ b/src/addons/messages/tests/behat/basic_usage.feature @@ -38,12 +38,20 @@ Feature: Test basic usage of messages in app Given I entered the app as "student1" When I press "Messages" in the app - And I press "Contacts" in the app + And I replace "/.*/" within ".addon-message-last-message-date" with "[Date]" + Then I should find "Contacts" in the app + And the UI should match the snapshot + + When I press "Contacts" in the app And I press "Requests" in the app And I press "Teacher teacher" in the app And I press "Accept and add to contacts" in the app Then I should not find "Teacher teacher would like to contact you" in the app + When I replace "/.*/" within ".addon-messages-date" with "[Day]" + And I replace "/.*/" within ".message-time" with "[Date]" + Then the UI should match the snapshot + When I press the back button in the app And I press "Contacts" near "No contact requests" in the app Then the header should be "Contacts" in the app diff --git a/src/addons/messages/tests/behat/snapshots/test-basic-usage-of-messages-in-app-view-recent-conversations-and-contacts_22.png b/src/addons/messages/tests/behat/snapshots/test-basic-usage-of-messages-in-app-view-recent-conversations-and-contacts_22.png new file mode 100644 index 000000000..6447230cc Binary files /dev/null and b/src/addons/messages/tests/behat/snapshots/test-basic-usage-of-messages-in-app-view-recent-conversations-and-contacts_22.png differ diff --git a/src/addons/messages/tests/behat/snapshots/test-basic-usage-of-messages-in-app-view-recent-conversations-and-contacts_30.png b/src/addons/messages/tests/behat/snapshots/test-basic-usage-of-messages-in-app-view-recent-conversations-and-contacts_30.png new file mode 100644 index 000000000..8e90e2a81 Binary files /dev/null and b/src/addons/messages/tests/behat/snapshots/test-basic-usage-of-messages-in-app-view-recent-conversations-and-contacts_30.png differ