From c905067a98aaa3fb513756b65d60b73afb56e32b Mon Sep 17 00:00:00 2001 From: Simey Lameze Date: Wed, 13 Dec 2023 09:20:20 +0800 Subject: [PATCH] MDL-79270 behat: update tests to match new UI elements --- admin/tests/behat/browse_users.feature | 2 +- grade/tests/behat/grade_average.feature | 11 +++++++---- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/admin/tests/behat/browse_users.feature b/admin/tests/behat/browse_users.feature index 40ced97c17a..0bc5806b238 100644 --- a/admin/tests/behat/browse_users.feature +++ b/admin/tests/behat/browse_users.feature @@ -90,7 +90,7 @@ Feature: An administrator can browse user accounts | user3 | User | Three | three@example.com | 0 | And I navigate to "Users > Accounts > Browse list of users" in site administration Then I should see "Confirmation pending" in the "User Three" "table_row" - And I press "Resend email" action in the "User Three" report row + And I press "Resend confirmation email" action in the "User Three" report row And I should see "Confirmation email sent successfully" And I press "Confirm" action in the "User Three" report row And I should not see "Confirmation pending" in the "User Three" "table_row" diff --git a/grade/tests/behat/grade_average.feature b/grade/tests/behat/grade_average.feature index 290bbf2f657..18066632364 100644 --- a/grade/tests/behat/grade_average.feature +++ b/grade/tests/behat/grade_average.feature @@ -42,10 +42,13 @@ Feature: Average grades are displayed in the gradebook | student2 | C1 | student | suspended | And I log in as "admin" And I navigate to "Users > Accounts > Browse list of users" in site administration - And I set the following fields to these values: - | username | student5 | - And I press "Add filter" - And I click on "Delete" "link" + And I click on "Filters" "button" + And I set the following fields in the "Username" "core_reportbuilder > Filter" to these values: + | Username operator | Is equal to | + | Username value | student5 | + And I click on "Apply" "button" in the "[data-region='report-filters']" "css_element" + And I click on "Filters" "button" + And I press "Delete" action in the "Student 5" report row And I press "Delete" # Enable averages And I am on the "Course 1" "grades > course grade settings" page