mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
MDL-73812 lang: Replace modified strings in tests
This commit is contained in:
parent
a77a75fe72
commit
2407b79b8b
5 changed files with 22 additions and 22 deletions
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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."
|
||||
|
|
|
@ -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 "<preference>"
|
||||
And I follow "Start page"
|
||||
And I set the field "Start page" to "<preference>"
|
||||
And I press "Save changes"
|
||||
Then "<breadcrumb>" "text" should exist in the ".breadcrumb" "css_element"
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue