mirror of
https://github.com/moodle/moodle.git
synced 2025-02-13 03:45:49 +01:00
This change includes addition of tests for verifying the secondary and tertiary nav highlights. It also includes the tests to verify the breadcrumbs for the pages.
28 lines
1.3 KiB
Gherkin
28 lines
1.3 KiB
Gherkin
@core @core_grades @javascript
|
|
Feature: Verify the breadcrumbs in grade outcomes site administration pages
|
|
Whenever I navigate to advanced features page in site administration
|
|
As an admin
|
|
The breadcrumbs should be visible
|
|
|
|
Background:
|
|
Given I log in as "admin"
|
|
|
|
Scenario: Verify the breadcrumbs in grades outcomes by adding a new outcome, visiting editing page and visiting delete page as an admin
|
|
Given I navigate to "Advanced features" in site administration
|
|
And I click on "Enable outcomes" "checkbox"
|
|
And I press "Save changes"
|
|
And I navigate to "Grades > Outcomes" in site administration
|
|
And I click on "Add a new outcome" "button"
|
|
And "Add an outcome" "text" should exist in the ".breadcrumb" "css_element"
|
|
And "Outcomes" "link" should exist in the ".breadcrumb" "css_element"
|
|
And I set the field "Full name" to "Outcome test"
|
|
And I set the field "Short name" to "outcome_test"
|
|
And I press "Save changes"
|
|
When I click on "Edit" "link"
|
|
Then "Edit outcome" "text" should exist in the ".breadcrumb" "css_element"
|
|
And "Outcomes" "link" should exist in the ".breadcrumb" "css_element"
|
|
And I press "Cancel"
|
|
And I click on "Delete" "link"
|
|
And "Delete outcome" "text" should exist in the ".breadcrumb" "css_element"
|
|
And "Outcomes" "link" should exist in the ".breadcrumb" "css_element"
|