From d869697f97fce4ae6f9d09bc59d41e2a23ef6303 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Mudr=C3=A1k?= Date: Mon, 30 Sep 2024 20:04:54 +0200 Subject: [PATCH] MDL-83238 lang: Fix the changed strings in the tests, too --- admin/tool/behat/tests/behat/tabs.feature | 2 +- badges/tests/behat/add_badge.feature | 4 ++-- badges/tests/behat/manage_badges.feature | 2 +- badges/tests/behat/nobadge_navigation.feature | 2 +- .../tests/behat/block_myoverview_pagination.feature | 2 +- .../myoverview/tests/behat/block_myoverview_search.feature | 2 +- .../tests/behat/block_myoverview_zerostate.feature | 6 +++--- 7 files changed, 10 insertions(+), 10 deletions(-) diff --git a/admin/tool/behat/tests/behat/tabs.feature b/admin/tool/behat/tests/behat/tabs.feature index 308af83cb22..210b916e526 100644 --- a/admin/tool/behat/tests/behat/tabs.feature +++ b/admin/tool/behat/tests/behat/tabs.feature @@ -25,7 +25,7 @@ Feature: Confirm that we can open multiple browser tabs And I open a tab named "CourseViewer4" on the "My courses" page # Switch between all the tabs and confirm their different contents. - Then I should see "You're not enrolled in any course" + Then I should see "You're not enrolled in any courses." And I switch to "CourseViewer2" tab And "Course 3" "heading" should exist And I switch to "CourseViewer1" tab diff --git a/badges/tests/behat/add_badge.feature b/badges/tests/behat/add_badge.feature index 20c82fb9b49..9c89782c6d5 100644 --- a/badges/tests/behat/add_badge.feature +++ b/badges/tests/behat/add_badge.feature @@ -51,7 +51,7 @@ Feature: Add badges to the system And I should see "Math" And I should see "Physics" And I navigate to "Badges > Manage badges" in site administration - And I should not see "There are no matching badges available for users to earn" + And I should not see "There are no matching badges available for users to earn." @javascript @_file_upload Scenario: Add a badge related @@ -163,7 +163,7 @@ Feature: Add badges to the system And I should see "Alignments (0)" And I should not see "Create badge" And I navigate to "Badges > Manage badges" in site administration - And I should not see "There are no matching badges available for users to earn" + And I should not see "There are no matching badges available for users to earn." # See buttons from the "Site badges" page. And I am on homepage When I click on "Site pages" "list_item" in the "Navigation" "block" diff --git a/badges/tests/behat/manage_badges.feature b/badges/tests/behat/manage_badges.feature index 0e055c8c52d..3614f00ce16 100644 --- a/badges/tests/behat/manage_badges.feature +++ b/badges/tests/behat/manage_badges.feature @@ -43,7 +43,7 @@ Feature: Manage badges And I navigate to "Badges > Manage badges" in site administration And I press "Delete" action in the "Badge #1" report row And I press "Delete and remove existing issued badges" - Then I should see "There are no matching badges available for users to earn" + Then I should see "There are no matching badges available for users to earn." Scenario: Enable and disable access to a badge Given I log in as "admin" diff --git a/badges/tests/behat/nobadge_navigation.feature b/badges/tests/behat/nobadge_navigation.feature index 5aebbd9f3f9..0ad995ea38e 100644 --- a/badges/tests/behat/nobadge_navigation.feature +++ b/badges/tests/behat/nobadge_navigation.feature @@ -4,7 +4,7 @@ Feature: Manage badges is not shown when there are no existing badges. Scenario: Check navigation at site level with no badges Given I log in as "admin" When I navigate to "Badges > Manage badges" in site administration - And I should see "There are no matching badges available for users to earn" + And I should see "There are no matching badges available for users to earn." Then "Manage badges" "button" should not exist Scenario: Check navigation at course level with no badges diff --git a/blocks/myoverview/tests/behat/block_myoverview_pagination.feature b/blocks/myoverview/tests/behat/block_myoverview_pagination.feature index bc4f23c734b..54ba2af40f2 100644 --- a/blocks/myoverview/tests/behat/block_myoverview_pagination.feature +++ b/blocks/myoverview/tests/behat/block_myoverview_pagination.feature @@ -35,7 +35,7 @@ Feature: My overview block pagination Scenario: The pagination controls should be hidden if I am not enrolled in any courses When I am on the "My courses" page logged in as "student1" - Then I should see "You're not enrolled in any course" in the "Course overview" "block" + Then I should see "You're not enrolled in any courses." in the "Course overview" "block" And I should not see "Show" in the "Course overview" "block" And ".block_myoverview .dropdown-menu.show" "css_element" should not be visible And ".block_myoverview [data-control='next']" "css_element" should not be visible diff --git a/blocks/myoverview/tests/behat/block_myoverview_search.feature b/blocks/myoverview/tests/behat/block_myoverview_search.feature index 8a0754d7d2c..5e210f277c0 100644 --- a/blocks/myoverview/tests/behat/block_myoverview_search.feature +++ b/blocks/myoverview/tests/behat/block_myoverview_search.feature @@ -40,7 +40,7 @@ Feature: My overview block searching Scenario: There is no search if I am not enrolled in any course When I am on the "My courses" page logged in as "student2" - Then I should see "You're not enrolled in any course" in the "Course overview" "block" + Then I should see "You're not enrolled in any courses." in the "Course overview" "block" And "Search courses" "field" should not exist in the "Course overview" "block" And I log out diff --git a/blocks/myoverview/tests/behat/block_myoverview_zerostate.feature b/blocks/myoverview/tests/behat/block_myoverview_zerostate.feature index 79cece88b26..19856e27d54 100644 --- a/blocks/myoverview/tests/behat/block_myoverview_zerostate.feature +++ b/blocks/myoverview/tests/behat/block_myoverview_zerostate.feature @@ -15,7 +15,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" + When I should see "You're not enrolled in any courses." 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" @@ -46,7 +46,7 @@ Feature: Zero state on my overview block | fullname | Course 1 | | 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 "You're not enrolled in any courses." 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 @@ -64,7 +64,7 @@ Feature: Zero state on my overview block | fullname | Course 1 | | 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 "You're not enrolled in any courses." Then I should not see "To view all courses on this sie, go to Manage courses" And "Manage courses" "button" should not exist And "Create course" "button" should exist