From 2407b79b8b6f1b9189e98c8f0f23638e920f98b3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADctor=20D=C3=A9niz?= Date: Thu, 17 Feb 2022 16:51:59 +0000 Subject: [PATCH] MDL-73812 lang: Replace modified strings in tests --- .../tests/behat/reconcile_xmldb_files.feature | 4 ++-- badges/tests/behat/add_badge.feature | 6 ++--- badges/tests/behat/award_badge.feature | 4 ++-- badges/tests/behat/nobadge_navigation.feature | 8 +++---- user/tests/behat/set_default_homepage.feature | 22 +++++++++---------- 5 files changed, 22 insertions(+), 22 deletions(-) diff --git a/admin/tool/xmldb/tests/behat/reconcile_xmldb_files.feature b/admin/tool/xmldb/tests/behat/reconcile_xmldb_files.feature index 9d45a54b667..225544d644b 100644 --- a/admin/tool/xmldb/tests/behat/reconcile_xmldb_files.feature +++ b/admin/tool/xmldb/tests/behat/reconcile_xmldb_files.feature @@ -8,5 +8,5 @@ Feature: The Reconcile XMLDB files report works and all the files are ok Given I log in as "admin" And I navigate to "Development > XMLDB editor" in site administration When I follow "[Reconcile XMLDB files]" - Then I should see "Look for XMLDB files needing reconcile" - And I should see "All files are ok, no reconcile action needed" + Then I should see "Look for XMLDB files needing reconciling" + And I should see "All files are OK. No reconciling is needed" diff --git a/badges/tests/behat/add_badge.feature b/badges/tests/behat/add_badge.feature index bc7695df440..b8101387eac 100644 --- a/badges/tests/behat/add_badge.feature +++ b/badges/tests/behat/add_badge.feature @@ -15,7 +15,7 @@ Feature: Add badges to the system And I add the "Navigation" block if not present And I click on "Site pages" "list_item" in the "Navigation" "block" Given I click on "Site badges" "link" in the "Navigation" "block" - Then I should see "There are no badges available." + Then I should see "There are currently no badges available for users to earn." @javascript @_file_upload Scenario: Add a badge @@ -46,7 +46,7 @@ Feature: Add badges to the system And I should see "testuser@example.com" And I follow "Manage badges" And I should see "Number of badges available: 1" - And I should not see "There are no badges available." + And I should not see "There are currently no badges available for users to earn." @javascript @_file_upload Scenario: Add a badge related @@ -159,7 +159,7 @@ Feature: Add badges to the system And I should not see "Create badge" And I follow "Manage badges" And I should see "Number of badges available: 1" - And I should not see "There are no badges available." + And I should not see "There are currently no 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/award_badge.feature b/badges/tests/behat/award_badge.feature index dd11b509372..46c88bdbe8b 100644 --- a/badges/tests/behat/award_badge.feature +++ b/badges/tests/behat/award_badge.feature @@ -101,7 +101,7 @@ Feature: Award badges And I add the "Navigation" block if not present And I click on "Site pages" "list_item" in the "Navigation" "block" And I click on "Site badges" "link" in the "Navigation" "block" - Then I should see "There are no badges available." + Then I should see "There are currently no badges available for users to earn." And I should not see "Manage badges" And I should not see "Add a new badge" @@ -135,7 +135,7 @@ Feature: Award badges And I press "Update profile" And I follow "Profile" in the user menu Then I should see "Profile Badge" - And I should not see "There are no badges available." + And I should not see "There are currently no badges available for users to earn." @javascript Scenario: Award site badge diff --git a/badges/tests/behat/nobadge_navigation.feature b/badges/tests/behat/nobadge_navigation.feature index bb950fe67c5..54c618f56c2 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 badges available" + And I should see "There are currently no badges available for users to earn." Then "Manage badges" "button" should not exist Scenario: Check navigation at course level with no badges @@ -40,7 +40,7 @@ Feature: Manage badges is not shown when there are no existing badges. And I follow "Badges" # Badge is not enabled yet so is not listed. And I should not see "Testing course badge" - And I should see "There are no badges available." + And I should see "There are currently no badges available for users to earn." And I click on "Manage badges" "button" And I click on "Enable access" "link" in the "Testing course badge" "table_row" And I click on "Continue" "button" @@ -48,7 +48,7 @@ Feature: Manage badges is not shown when there are no existing badges. And I follow "Badges" # Badge is already enabled so is listed. And I should see "Testing course badge" - And I should not see "There are no badges available." + And I should not see "There are currently no badges available for users to earn." Scenario: Check navigation at course level with no badges as a student # Create a badge, but leave it not enabled for now. @@ -90,4 +90,4 @@ Feature: Manage badges is not shown when there are no existing badges. And I follow "Badges" And "Manage badges" "button" should not exist And "Add a new badge" "button" should not exist - And I should not see "There are no badges available." + And I should not see "There are currently no badges available for users to earn." diff --git a/user/tests/behat/set_default_homepage.feature b/user/tests/behat/set_default_homepage.feature index e2e6df503c4..4fb97324419 100644 --- a/user/tests/behat/set_default_homepage.feature +++ b/user/tests/behat/set_default_homepage.feature @@ -1,8 +1,8 @@ @core @core_user -Feature: Set the site home page and dashboard as the default home page - In order to set a page as my default home page +Feature: Set the site home page and dashboard as the default start page + In order to set a page as my default start page As a user - I need to choose which page I want and set it as my home page + I need to choose which page I want and set it as my start page Background: Given the following "courses" exist: @@ -12,7 +12,7 @@ Feature: Set the site home page and dashboard as the default home page | username | firstname | lastname | email | | user1 | User | One | user1@example.com | - Scenario: Admin sets the site page and then the dashboard as the default home page + Scenario: Admin sets the site page and then the dashboard as the default start page # This functionality does not work without the administration block. Given I log in as "admin" And I am on site homepage @@ -23,7 +23,7 @@ Feature: Set the site home page and dashboard as the default home page | Page contexts | Display throughout the entire site | And I press "Save changes" And I navigate to "Appearance > Navigation" in site administration - And I set the field "Home page for users" to "User preference" + And I set the field "Start page for users" to "User preference" And I press "Save changes" And I am on site homepage And I follow "Make this my home page" @@ -37,21 +37,21 @@ Feature: Set the site home page and dashboard as the default home page And I am on "Course 1" course homepage Then "Dashboard" "text" should exist in the ".breadcrumb" "css_element" - Scenario: User cannot configure their preferred default home page unless allowed by admin + Scenario: User cannot configure their preferred default start page unless allowed by admin Given I log in as "user1" When I follow "Preferences" in the user menu - Then I should not see "Home page" + Then I should not see "Start page" - Scenario Outline: User can configure their preferred default home page when allowed by admin + Scenario Outline: User can configure their preferred default start page when allowed by admin Given I log in as "admin" And I navigate to "Appearance > Navigation" in site administration - And I set the field "Home page for users" to "User preference" + And I set the field "Start page for users" to "User preference" And I press "Save changes" And I log out When I log in as "user1" And I follow "Preferences" in the user menu - And I follow "Home page" - And I set the field "Home page" to "" + And I follow "Start page" + And I set the field "Start page" to "" And I press "Save changes" Then "" "text" should exist in the ".breadcrumb" "css_element"