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.
This commit is contained in:
Jun Pataleta 2022-06-09 22:00:45 +08:00 committed by Sara Arjona
parent 0d61bf1b87
commit bfa2c03191

View File

@ -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"