mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 22:08:20 +01:00
MDL-49412 behat: Update to core_admin behat tests.
Part of MDL-45774.
This commit is contained in:
parent
c699310c40
commit
f6564aa450
@ -9,6 +9,7 @@ Feature: Display extended course names
|
||||
| fullname | shortname | category |
|
||||
| Course fullname | C_shortname | 0 |
|
||||
And I log in as "admin"
|
||||
And I am on site homepage
|
||||
|
||||
Scenario: Courses list without extended course names (default value)
|
||||
Then I should see "Course fullname"
|
||||
@ -19,5 +20,5 @@ Feature: Display extended course names
|
||||
And I click on "Courses" "link" in the "//div[@id='settingsnav']/descendant::li[contains(concat(' ', normalize-space(@class), ' '), ' type_setting ')][contains(., 'Appearance')]" "xpath_element"
|
||||
And I set the field "Display extended course names" to "1"
|
||||
When I press "Save changes"
|
||||
And I am on homepage
|
||||
And I am on site homepage
|
||||
Then I should see "C_shortname Course fullname"
|
||||
|
@ -9,17 +9,18 @@ Feature: Set admin settings value
|
||||
| fullname | shortname | category |
|
||||
| Course fullname | C_shortname | 0 |
|
||||
And I log in as "admin"
|
||||
And I am on site homepage
|
||||
And I should see "Course fullname"
|
||||
And I should not see "C_shortname Course fullname"
|
||||
|
||||
Scenario: set admin value with full name
|
||||
Given the following config values are set as admin:
|
||||
| courselistshortnames | 1 |
|
||||
And I am on homepage
|
||||
And I am on site homepage
|
||||
Then I should see "C_shortname Course fullname"
|
||||
|
||||
Scenario: set admin value with short name
|
||||
Given the following config values are set as admin:
|
||||
| courselistshortnames | 1 |
|
||||
And I am on homepage
|
||||
Then I should see "C_shortname Course fullname"
|
||||
And I am on site homepage
|
||||
Then I should see "C_shortname Course fullname"
|
||||
|
@ -33,7 +33,7 @@ Feature: Upload users
|
||||
And I should see "Tom Jones"
|
||||
And I should see "Trent Reznor"
|
||||
And I should see "reznor@someplace.edu"
|
||||
And I am on homepage
|
||||
And I am on site homepage
|
||||
And I follow "Maths"
|
||||
And I expand "Users" node
|
||||
And I follow "Groups"
|
||||
|
Loading…
x
Reference in New Issue
Block a user