MDL-79270 behat: update tests to match new UI elements

This commit is contained in:
Simey Lameze
2023-12-13 09:20:20 +08:00
parent 2abd1a212d
commit c905067a98
2 changed files with 8 additions and 5 deletions
+1 -1
View File
@@ -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"
+7 -4
View File
@@ -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