1
0
mirror of https://github.com/moodle/moodle.git synced 2025-04-23 09:23:09 +02:00

MDL-73639 behat: Fix the failure with the Enrol button

The button at the top of the page is hidden a few seconds by the
un-enrolment confirmation dialogue. Instead of waiting a few seconds
or reloading the page, the button at the bottom is clicked instead.
This commit is contained in:
Sara Arjona 2024-01-09 16:39:36 +01:00
parent e2e00a9dd4
commit 73cf6fb65c
No known key found for this signature in database

@ -33,7 +33,8 @@ Feature: Admin can set Recover grades default setting
And I navigate to course participants
And I click on "Unenrol" "icon" in the "Student One" "table_row"
And I click on "Unenrol" "button" in the "Unenrol" "dialogue"
And I press "Enrol users"
# The button at the top is hidden by the un-enrolment confirmation dialogue so the button at the bottom is clicked instead.
And I click on "Enrol users" "button" in the "div.justify-content-end .enrolusersbutton" "css_element"
And I set the field "Select users" to "student1"
# Confirm the "Recover user's old grades if possible" checkbox state based on Recover grades default setting
When I click on "Show more..." "link"