From bfa2c031913685a86a824904424f3dbc073fa338 Mon Sep 17 00:00:00 2001 From: Jun Pataleta Date: Thu, 9 Jun 2022 22:00:45 +0800 Subject: [PATCH] MDL-74802 core_user: Use button label to close notification alert With the notification alert's close button now properly labelled, it is better for Behat to interact on it using its label. --- user/tests/behat/edit_profile_notification.feature | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/user/tests/behat/edit_profile_notification.feature b/user/tests/behat/edit_profile_notification.feature index 2fb174b8258..2ae266c7751 100644 --- a/user/tests/behat/edit_profile_notification.feature +++ b/user/tests/behat/edit_profile_notification.feature @@ -25,7 +25,7 @@ Feature: Notification shown when user edit profile or preferences Then I set the field "Surname" to "Lil" And I click on "Update profile" "button" And I should see "Changes saved" - And I click on ".close" "css_element" in the "div.alert-block" "css_element" + And I press "Dismiss this notification" And I should not see "Changes saved" And I follow "Preferences" in the user menu And I follow "Preferred language"