mirror of
https://github.com/moodle/moodle.git
synced 2025-08-06 17:36:38 +02:00
MDL-73201 lang: Use fixed strings in the tests, too
This commit is contained in:
parent
558b4c826d
commit
46e2e2020d
16 changed files with 47 additions and 47 deletions
|
@ -29,30 +29,30 @@ Feature: Activities content download can be controlled
|
|||
| downloadcoursecontentallowed | 1 |
|
||||
And I log out
|
||||
|
||||
Scenario: "Include in course downloads (if that feature is enabled)" field default is set to "Yes" if nothing has been set
|
||||
Scenario: "Include in course content download" field default is set to "Yes" if nothing has been set
|
||||
Given I am on the Page1 "Page Activity editing" page logged in as admin
|
||||
Then the field "Include in course downloads (if that feature is enabled)" matches value "Yes"
|
||||
Then the field "Include in course content download" matches value "Yes"
|
||||
|
||||
Scenario: "Include in course downloads (if that feature is enabled)" field is not visible if course content is disabled on site level
|
||||
Scenario: "Include in course content download" field is not visible if course content is disabled on site level
|
||||
Given I log in as "admin"
|
||||
And the following config values are set as admin:
|
||||
| downloadcoursecontentallowed | 0 |
|
||||
And I am on the Page1 "Page Activity editing" page
|
||||
Then "Include in course downloads (if that feature is enabled)" "select" should not exist
|
||||
Then "Include in course content download" "select" should not exist
|
||||
|
||||
Scenario: "Include in course downloads (if that feature is enabled)" field is visible even if course content is disabled on course level
|
||||
Scenario: "Include in course content download" field is visible even if course content is disabled on course level
|
||||
Given I log in as "admin"
|
||||
And I am on "Course 1" course homepage
|
||||
And I navigate to "Settings" in current page administration
|
||||
When I set the field "Enable download course content" to "No"
|
||||
And I press "Save and display"
|
||||
And I am on the Page1 "Page Activity editing" page
|
||||
Then "Include in course downloads (if that feature is enabled)" "select" should exist
|
||||
Then "Include in course content download" "select" should exist
|
||||
|
||||
Scenario: "Include in course downloads (if that feature is enabled)" field should be visible but not editable for users without configuredownloadcontent capability
|
||||
Scenario: "Include in course content download" field should be visible but not editable for users without configuredownloadcontent capability
|
||||
Given I log in as "manager1"
|
||||
And I am on the Folder1 "Folder Activity editing" page
|
||||
And "Include in course downloads (if that feature is enabled)" "field" should exist
|
||||
And "Include in course content download" "field" should exist
|
||||
And I log out
|
||||
And I log in as "admin"
|
||||
When I set the following system permissions of "Manager" role:
|
||||
|
@ -61,6 +61,6 @@ Feature: Activities content download can be controlled
|
|||
And I log out
|
||||
And I log in as "manager1"
|
||||
And I am on the Folder1 "Folder Activity editing" page
|
||||
Then I should see "Include in course downloads (if that feature is enabled)"
|
||||
Then I should see "Include in course content download"
|
||||
And I should see "No"
|
||||
And "Include in course downloads (if that feature is enabled)" "select" should not exist
|
||||
And "Include in course content download" "select" should not exist
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
@core @core_course
|
||||
Feature: Front page displays items in different modes
|
||||
Feature: Site home displays items in different modes
|
||||
In order to show a clean and clear list of the site categories and course
|
||||
As an admin
|
||||
I need to set different frontpage display modes
|
||||
|
@ -27,7 +27,7 @@ Feature: Front page displays items in different modes
|
|||
@javascript
|
||||
Scenario: Displays a list of categories
|
||||
When I set the following administration settings values:
|
||||
| Front page items when logged in | List of categories |
|
||||
| Site home items when logged in | List of categories |
|
||||
| Maximum category depth | 2 |
|
||||
And I am on site homepage
|
||||
Then I should see "Category A" in the "region-main" "region"
|
||||
|
@ -43,7 +43,7 @@ Feature: Front page displays items in different modes
|
|||
@javascript
|
||||
Scenario: Displays a combo list
|
||||
When I set the following administration settings values:
|
||||
| Front page items when logged in | Combo list |
|
||||
| Site home items when logged in | Combo list |
|
||||
| Maximum category depth | 2 |
|
||||
And I am on site homepage
|
||||
Then I should see "Category A" in the "region-main" "region"
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
@core @core_course
|
||||
Feature: Front page topic section
|
||||
Feature: Site home topic section
|
||||
In order to show a display activities in the frontpage
|
||||
As an admin
|
||||
I need to edit the frontpage topic section
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue