MDL-49412 behat: Update to core_admin behat tests.

Part of MDL-45774.
This commit is contained in:
Adrian Greeve 2015-03-31 13:13:31 +08:00
parent c699310c40
commit f6564aa450
3 changed files with 7 additions and 5 deletions

View File

@ -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"

View File

@ -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"

View File

@ -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"