Skip to content

Commit

Permalink
MDL-78415 lang: Fix Behat tests regressions after merging en_fix strings
Browse files Browse the repository at this point in the history
  • Loading branch information
vmdef committed Jun 8, 2023
1 parent a290569 commit ab62e5f
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 18 deletions.
22 changes: 11 additions & 11 deletions admin/tests/behat/resetindentation.feature
Expand Up @@ -56,12 +56,12 @@ Feature: Reset course indentation
Scenario Outline: Apply course indentation reset
Given I navigate to "Plugins > Course formats > <format> format" in site administration
And I wait "5" seconds
And "Reset indentation" "link" should exist
When I click on "Reset indentation" "link"
And I should see "Reset indentation on course page"
And "Reset indentation" "button" should exist
And I click on "Reset indentation" "button"
Then I should see "Indentation reset"
And "Reset indentation sitewide" "link" should exist
When I click on "Reset indentation sitewide" "link"
And I should see "Reset indentation sitewide"
And "Reset indentation sitewide" "button" should exist
And I click on "Reset indentation sitewide" "button"
Then I should see "Indentation reset."
And I am on "<format> Course 1" course homepage with editing mode on
And I open "<format> forum name" actions menu
And "Move right" "link" in the "<format> forum name" "activity" should be visible
Expand All @@ -87,13 +87,13 @@ Feature: Reset course indentation

Scenario Outline: Cancel course indentation reset
Given I navigate to "Plugins > Course formats > <format> format" in site administration
And "Reset indentation" "link" should exist
When I click on "Reset indentation" "link"
And I should see "Reset indentation on course page"
And "Reset indentation" "button" should exist
And "Reset indentation sitewide" "link" should exist
When I click on "Reset indentation sitewide" "link"
And I should see "Reset indentation sitewide"
And "Reset indentation sitewide" "button" should exist
And "Cancel" "button" should exist
And I click on "Cancel" "button"
Then I should not see "Indentation reset"
Then I should not see "Indentation reset."
And I am on "<format> Course 1" course homepage with editing mode on
And I open "<format> forum name" actions menu
And "Move right" "link" in the "<format> forum name" "activity" should not be visible
Expand Down
Expand Up @@ -16,7 +16,7 @@ Feature: Zero state on my overview block
Scenario: Users with no permissions don't see any CTA
Given I am on the "My courses" page logged in as "user"
When I should see "You're not enrolled in any course"
Then I should see "Once you enrol in a course, it will appear here"
Then I should see "Once you\'re enrolled in a course, it will appear here."
And I should not see "Create course"
And I should not see "Request a course"

Expand Down Expand Up @@ -47,7 +47,7 @@ Feature: Zero state on my overview block
| shortname | C1 |
When I am on the "My courses" page logged in as "manager"
Then I should see "You're not enrolled in any course"
Then I should see "Once you enrol in a course, it will appear here."
Then I should see "Once you\'re enrolled in a course, it will appear here."
And "Manage courses" "button" should exist
And "Create course" "button" should exist
And I click on "Create course" "button"
Expand Down
10 changes: 5 additions & 5 deletions grade/report/grader/tests/behat/column_collapsing.feature
Expand Up @@ -73,7 +73,7 @@ Feature: Within the grader report, test that we can collapse columns
Given I click on grade item menu "Test assignment one" of type "gradeitem" on "grader" page
When I choose "Collapse" in the open action menu
And I should not see "Test assignment one</a>" in the "First name / Last name" "table_row"
Then I should see "Reopen Test assignment one column"
Then I should see "Expand column Test assignment one"
And I should see "Collapsed columns 1"

Scenario: Collapsed columns can have their name searched and triggered to expand but the contents are not searched
Expand Down Expand Up @@ -128,8 +128,8 @@ Feature: Within the grader report, test that we can collapse columns
Given I click on user profile field menu "Email"
And I choose "Collapse" in the open action menu
And I should not see "Email" in the "First name / Last name" "table_row"
And I hover "Reopen email column" "button"
When I press "Reopen email column"
And I hover "Expand column email" "button"
When I press "Expand column email"
Then I should see "Email" in the "First name / Last name" "table_row"

Scenario: When a grade item is collapsed, the grade category is shown alongside the column name.
Expand Down Expand Up @@ -222,10 +222,10 @@ Feature: Within the grader report, test that we can collapse columns
And I click on user profile field menu "city"
And I press the escape key
And I press the tab key
And the focused element is "Reopen country column" "button"
And the focused element is "Expand column country" "button"
And I press the enter key
And I press the tab key
And the focused element is "Reopen phone1 column" "button"
And the focused element is "Expand column phone1" "button"
And I press the enter key
And I should not see "Email" in the "First name / Last name" "table_row"
And I should see "Phone" in the "First name / Last name" "table_row"
Expand Down

0 comments on commit ab62e5f

Please sign in to comment.