moodle/grade/tests/behat/siteadmin_grades_outcomes_breadcrumbs.feature
Sujith Haridasan 1bb972ae0a MDL-73848 administration: Add tests for breadcrumbs and nav highlights
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.
2022-03-25 17:44:58 +08:00

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"