MDL-42731 behat: load 'Site administration' when expanding node in non-javascript mode
This commit is contained in:
@@ -125,23 +125,4 @@ class behat_admin extends behat_base {
|
||||
$this->getSession()->wait($timeout, $javascript);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Goes to notification page ensuring site admin navigation is loaded.
|
||||
*
|
||||
* @Given /^I go to notifications page$/
|
||||
* @return Given[]
|
||||
*/
|
||||
public function i_go_to_notifications_page() {
|
||||
if ($this->running_javascript()) {
|
||||
return array(
|
||||
new Given('I expand "' . get_string('administrationsite') . '" node'),
|
||||
new Given('I follow "' . get_string('notifications') . '"')
|
||||
);
|
||||
} else {
|
||||
return array(
|
||||
new Given('I follow "' . get_string('administrationsite') . '"')
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -15,7 +15,8 @@ Feature: Display extended course names
|
||||
And I should not see "C_shortname Course fullname"
|
||||
|
||||
Scenario: Courses list with extended course names
|
||||
Given I go to notifications page
|
||||
Given I expand "Site administration" node
|
||||
And I expand "Appearance" node
|
||||
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 check "Display extended course names"
|
||||
When I press "Save changes"
|
||||
|
||||
Reference in New Issue
Block a user