diff --git a/admin/tool/dataprivacy/tests/behat/datadelete.feature b/admin/tool/dataprivacy/tests/behat/datadelete.feature index 8a1d6bdc936..319ec40217a 100644 --- a/admin/tool/dataprivacy/tests/behat/datadelete.feature +++ b/admin/tool/dataprivacy/tests/behat/datadelete.feature @@ -54,6 +54,7 @@ Feature: Data delete from the privacy API And I should see "Awaiting approval" in the "Victim User 1" "table_row" And I open the action menu in "Victim User 1" "table_row" And I follow "Approve request" + And I wait until "Approve request" "button" exists And I press "Approve request" And I should see "Approved" in the "Victim User 1" "table_row" And I run all adhoc tasks @@ -80,6 +81,7 @@ Feature: Data delete from the privacy API And I navigate to "Users > Privacy and policies > Data requests" in site administration And I open the action menu in "Victim User 1" "table_row" And I follow "Approve request" + And I wait until "Approve request" "button" exists And I press "Approve request" And I log out @@ -115,6 +117,7 @@ Feature: Data delete from the privacy API And I navigate to "Users > Privacy and policies > Data requests" in site administration And I open the action menu in "Victim User 1" "table_row" And I follow "Approve request" + And I wait until "Approve request" "button" exists And I press "Approve request" And I log out diff --git a/admin/tool/dataprivacy/tests/behat/dataexport.feature b/admin/tool/dataprivacy/tests/behat/dataexport.feature index d8796541277..662ccae191b 100644 --- a/admin/tool/dataprivacy/tests/behat/dataexport.feature +++ b/admin/tool/dataprivacy/tests/behat/dataexport.feature @@ -48,6 +48,7 @@ Feature: Data export from the privacy API And I should see "Awaiting approval" in the "Victim User 1" "table_row" And I open the action menu in "Victim User 1" "table_row" And I follow "Approve request" + And I wait until "Approve request" "button" exists And I press "Approve request" And I should see "Approved" in the "Victim User 1" "table_row" And I run all adhoc tasks @@ -115,6 +116,7 @@ Feature: Data export from the privacy API And I navigate to "Users > Privacy and policies > Data requests" in site administration And I open the action menu in "Victim User 1" "table_row" And I follow "Approve request" + And I wait until "Approve request" "button" exists And I press "Approve request" And I log out diff --git a/admin/tool/policy/tests/behat/acceptances.feature b/admin/tool/policy/tests/behat/acceptances.feature index c311811372f..ed2748079e5 100644 --- a/admin/tool/policy/tests/behat/acceptances.feature +++ b/admin/tool/policy/tests/behat/acceptances.feature @@ -170,6 +170,7 @@ Feature: Viewing acceptances reports and accepting on behalf of other users And I navigate to "Users > Privacy and policies > Manage policies" in site administration And I click on "Actions" "link_or_button" in the "This privacy policy" "table_row" And I click on "Set status to \"Active\"" "link" in the "This privacy policy" "table_row" + And I wait until "Activate" "button" exists And I press "Activate" And I log out When I log in as "manager" @@ -260,6 +261,7 @@ Feature: Viewing acceptances reports and accepting on behalf of other users And I navigate to "Users > Privacy and policies > Manage policies" in site administration And I click on "Actions" "link_or_button" in the "This privacy policy" "table_row" And I click on "Set status to \"Active\"" "link" in the "This privacy policy" "table_row" + And I wait until "Activate" "button" exists And I press "Activate" And I log out When I log in as "manager" diff --git a/analytics/tests/behat/manage_models.feature b/analytics/tests/behat/manage_models.feature index 13e721e3275..e01619227ee 100644 --- a/analytics/tests/behat/manage_models.feature +++ b/analytics/tests/behat/manage_models.feature @@ -116,6 +116,7 @@ Feature: Manage analytics models And I should see "Read actions amount" And I click on "Select Student 6 for bulk action" "checkbox" in the "Student 6" "table_row" And I click on "Accept" "button" + And I wait until "Confirm" "button" exists And I click on "Confirm" "button" in the "Accept" "dialogue" And I click on "View prediction details" "icon" in the "Student 5" "table_row" And I click on "Select Student 5 for bulk action" "checkbox" in the "Student 5" "table_row" diff --git a/mod/lesson/tests/behat/duplicate_lesson_page.feature b/mod/lesson/tests/behat/duplicate_lesson_page.feature index b3c2a76e2c8..1fe950c794e 100644 --- a/mod/lesson/tests/behat/duplicate_lesson_page.feature +++ b/mod/lesson/tests/behat/duplicate_lesson_page.feature @@ -36,6 +36,7 @@ Feature: In a lesson activity, a teacher can duplicate a lesson page | id_answer_editor_1 | Previous page | | id_jumpto_1 | Previous page | And I click on "Image" "button" in the "Page contents" "form_row" + And I wait until "Browse repositories" "button" exists And I click on "Browse repositories" "button" And I click on "Private files" "link" in the ".fp-repo-area" "css_element" And I click on "moodle_logo.jpg" "link" @@ -70,6 +71,7 @@ Feature: In a lesson activity, a teacher can duplicate a lesson page | id_jumpto_1 | This page | | id_score_1 | 0 | And I click on "Image" "button" in the "//*[@id='id_answer_editor_0']/ancestor::*[@data-fieldtype='editor']" "xpath_element" + And I wait until "Browse repositories" "button" exists And I click on "Browse repositories" "button" And I click on "Private files" "link" in the ".fp-repo-area" "css_element" And I click on "moodle_logo.jpg" "link" @@ -107,6 +109,7 @@ Feature: In a lesson activity, a teacher can duplicate a lesson page | id_jumpto_1 | This page | | id_score_1 | 0 | And I click on "Image" "button" in the "//*[@id='id_response_editor_0']/ancestor::*[@data-fieldtype='editor']" "xpath_element" + And I wait until "Browse repositories" "button" exists And I click on "Browse repositories" "button" And I click on "Private files" "link" in the ".fp-repo-area" "css_element" And I click on "moodle_logo.jpg" "link"