AutorÃa | Ultima modificación | Ver Log |
@javascript @core_courseFeature: Course category breadcrumbs navigationTo navigate around the course category pagesAs an admin userI should see breadcrumbsBackground:Given the following "blocks" exist:| blockname | contextlevel | reference | defaultregion || navigation | System | 1 | side-post |And the following "categories" exist:| name | category | idnumber || Cat 1 | 0 | CAT1 |Scenario: Admin user navigates to 'course category management' pageGiven I log in as "admin"And I navigate to "Courses > Manage courses and categories" in site administrationWhen I follow "Cat 1"Then I should see "Courses" in the ".breadcrumb" "css_element"And I should see "Cat 1" in the ".breadcrumb" "css_element"And I should see "Manage courses and categories" in the ".breadcrumb" "css_element"And I should see "Cat 1" in the ".page-context-header" "css_element"And I should see "Manage course categories and courses" in the "region-main" "region"Scenario: Admin user navigates to category 'view' pageGiven I log in as "admin"And I navigate to "Courses > Manage courses and categories" in site administrationAnd I follow "Cat 1"When I click on "view" action for "Cat 1" in management category listingThen I should see "Courses" in the ".breadcrumb" "css_element"And I should see "Cat 1" in the ".breadcrumb" "css_element"And I should see "Cat 1" in the ".page-context-header" "css_element"And I should see "Cat 1" in the ".block_navigation .active_tree_node" "css_element"Scenario: Admin user navigates to 'add new course' pageGiven I log in as "admin"And I navigate to "Courses > Manage courses and categories" in site administrationAnd I follow "Cat 1"When I click on "Create new course" "link"Then I should see "Courses" in the ".breadcrumb" "css_element"And I should see "Cat 1" in the ".breadcrumb" "css_element"And I should see "Manage courses and categories" in the ".breadcrumb" "css_element"And I should see "Add a new course" in the ".breadcrumb" "css_element"And I should see "Cat 1" in the ".page-context-header" "css_element"And I should see "Add a new course" in the "region-main" "region"And I should see "Cat 1" in the ".block_navigation .active_tree_node" "css_element"Scenario: Admin user navigates to 'add category' pageGiven I log in as "admin"And I navigate to "Courses > Manage courses and categories" in site administrationAnd I follow "Cat 1"When I click on "Create new category" "link"Then I should see "Courses" in the ".breadcrumb" "css_element"And I should see "Cat 1" in the ".breadcrumb" "css_element"And I should see "Manage courses and categories" in the ".breadcrumb" "css_element"And I should see "Add a category" in the ".breadcrumb" "css_element"And I should see "Cat 1" in the ".page-context-header" "css_element"And I should see "Add new category" in the "region-main" "region"And I should see "Cat 1" in the ".block_navigation .active_tree_node" "css_element"Scenario: Admin user navigates to a subcategory 'management' pageGiven the following "categories" exist:| name | category | idnumber || Subcat 1 | CAT1 | SUBCAT1 |And I log in as "admin"And I navigate to "Courses > Manage courses and categories" in site administrationAnd I follow "Cat 1"When I follow "Subcat 1"Then I should see "Courses" in the ".breadcrumb" "css_element"And I should see "Cat 1" in the ".breadcrumb" "css_element"And I should see "Subcat 1" in the ".breadcrumb" "css_element"And I should see "Manage courses and categories" in the ".breadcrumb" "css_element"And I should see "Subcat 1" in the ".page-context-header" "css_element"And I should see "Manage course categories and courses" in the "region-main" "region"Scenario: Admin user navigates to a subcategory 'view' pageGiven the following "categories" exist:| name | category | idnumber || Subcat 1 | CAT1 | SUBCAT1 |And I log in as "admin"And I navigate to "Courses > Manage courses and categories" in site administrationAnd I follow "Cat 1"And I follow "Subcat 1"When I click on "view" action for "Subcat 1" in management category listingThen I should see "Courses" in the ".breadcrumb" "css_element"And I should see "Cat 1" in the ".breadcrumb" "css_element"And I should see "Subcat 1" in the ".breadcrumb" "css_element"And I should see "Subcat 1" in the ".page-context-header" "css_element"And I should see "Subcat 1" in the ".block_navigation .active_tree_node" "css_element"Scenario: Admin user navigates to 'add new course' page within a subcategoryGiven the following "categories" exist:| name | category | idnumber || Subcat 1 | CAT1 | SUBCAT1 |And I log in as "admin"And I navigate to "Courses > Manage courses and categories" in site administrationAnd I follow "Cat 1"And I follow "Subcat 1"When I click on "Create new course" "link"Then I should see "Courses" in the ".breadcrumb" "css_element"And I should see "Cat 1" in the ".breadcrumb" "css_element"And I should see "Subcat 1" in the ".breadcrumb" "css_element"And I should see "Manage courses and categories" in the ".breadcrumb" "css_element"And I should see "Add a new course" in the ".breadcrumb" "css_element"And I should see "Subcat 1" in the ".page-context-header" "css_element"And I should see "Add a new course" in the "region-main" "region"And I should see "Subcat 1" in the ".block_navigation .active_tree_node" "css_element"Scenario: Admin user navigates to category 'settings' pageGiven I log in as "admin"And I navigate to "Courses > Manage courses and categories" in site administrationAnd I follow "Cat 1"When I navigate to "Settings" in current page administrationThen I should see "Courses" in the ".breadcrumb" "css_element"And I should see "Cat 1" in the ".breadcrumb" "css_element"And I should see "Settings" in the ".breadcrumb" "css_element"And I should see "Cat 1" in the ".page-context-header" "css_element"And I should see "Edit category settings" in the "region-main" "region"And I should see "Cat 1" in the ".block_navigation .active_tree_node" "css_element"Scenario: Admin user navigates to category 'permissions' pageGiven I log in as "admin"And I navigate to "Courses > Manage courses and categories" in site administrationAnd I follow "Cat 1"When I navigate to "Permissions" in current page administrationThen I should see "Courses" in the ".breadcrumb" "css_element"And I should see "Cat 1" in the ".breadcrumb" "css_element"And I should see "Permissions" in the ".breadcrumb" "css_element"And I should see "Cat 1" in the ".page-context-header" "css_element"And I should see "Permissions in Category: Cat 1" in the "region-main" "region"And I should see "Cat 1" in the ".block_navigation .active_tree_node" "css_element"Scenario: Admin user navigates to category 'assign roles' pageGiven I log in as "admin"And I navigate to "Courses > Manage courses and categories" in site administrationAnd I follow "Cat 1"And I navigate to "Permissions" in current page administrationAnd I set the field "Participants tertiary navigation" to "Assign roles"Then I should see "Courses" in the ".breadcrumb" "css_element"And I should see "Cat 1" in the ".breadcrumb" "css_element"And I should see "Assign roles" in the ".breadcrumb" "css_element"And I should see "Cat 1" in the ".page-context-header" "css_element"And I should see "Assign roles in Category: Cat 1" in the "region-main" "region"Scenario: Admin user navigates to category 'check permissions' pageGiven I log in as "admin"And I navigate to "Courses > Manage courses and categories" in site administrationAnd I follow "Cat 1"And I navigate to "Permissions" in current page administrationWhen I set the field "Participants tertiary navigation" to "Check permissions"Then I should see "Courses" in the ".breadcrumb" "css_element"And I should see "Cat 1" in the ".breadcrumb" "css_element"And I should see "Check permissions" in the ".breadcrumb" "css_element"And I should see "Cat 1" in the ".page-context-header" "css_element"And I should see "Check permissions in Category: Cat 1" in the "region-main" "region"And I should see "Cat 1" in the ".block_navigation .active_tree_node" "css_element"Scenario: Admin user navigates to category 'cohorts' pageGiven I log in as "admin"And I navigate to "Courses > Manage courses and categories" in site administrationAnd I follow "Cat 1"When I navigate to "Cohorts" in current page administrationThen I should see "Courses" in the ".breadcrumb" "css_element"And I should see "Cat 1" in the ".breadcrumb" "css_element"And I should see "Cohorts" in the ".breadcrumb" "css_element"And I should see "Cat 1" in the ".page-context-header" "css_element"And I should see "Cohorts" in the "region-main" "region"And I should see "Cat 1" in the ".block_navigation .active_tree_node" "css_element"Scenario: Admin user navigates to category 'add new cohort' pageGiven I log in as "admin"And I navigate to "Courses > Manage courses and categories" in site administrationAnd I follow "Cat 1"And I navigate to "Cohorts" in current page administrationWhen I follow "Add new cohort"Then I should see "Courses" in the ".breadcrumb" "css_element"And I should see "Cat 1" in the ".breadcrumb" "css_element"And I should see "Cohorts" in the ".breadcrumb" "css_element"And I should see "Add new cohort" in the ".breadcrumb" "css_element"And I should see "Cat 1" in the ".page-context-header" "css_element"And I should see "Add new cohort" in the "region-main" "region"And I should see "Cat 1" in the ".block_navigation .active_tree_node" "css_element"Scenario: Admin user navigates to category 'upload cohorts' pageGiven I log in as "admin"And I navigate to "Courses > Manage courses and categories" in site administrationAnd I follow "Cat 1"And I navigate to "Cohorts" in current page administrationWhen I follow "Upload cohorts"Then I should see "Courses" in the ".breadcrumb" "css_element"And I should see "Cat 1" in the ".breadcrumb" "css_element"And I should see "Cohorts" in the ".breadcrumb" "css_element"And I should see "Upload cohorts" in the ".breadcrumb" "css_element"And I should see "Cat 1" in the ".page-context-header" "css_element"And I should see "Upload cohorts" in the "region-main" "region"And I should see "Cat 1" in the ".block_navigation .active_tree_node" "css_element"Scenario: Admin user navigates to category 'filters' pageGiven I log in as "admin"And I navigate to "Courses > Manage courses and categories" in site administrationAnd I follow "Cat 1"When I navigate to "Filters" in current page administrationThen I should see "Courses" in the ".breadcrumb" "css_element"And I should see "Cat 1" in the ".breadcrumb" "css_element"And I should see "Filters" in the ".breadcrumb" "css_element"And I should see "Cat 1" in the ".page-context-header" "css_element"And I should see "Filter settings in Category: Cat 1" in the "region-main" "region"And I should see "Cat 1" in the ".block_navigation .active_tree_node" "css_element"Scenario: Admin user navigates to category 'restore course' pageGiven I log in as "admin"And I navigate to "Courses > Manage courses and categories" in site administrationAnd I follow "Cat 1"When I navigate to "Restore course" in current page administrationThen I should see "Courses" in the ".breadcrumb" "css_element"And I should see "Cat 1" in the ".breadcrumb" "css_element"And I should see "Restore course" in the ".breadcrumb" "css_element"And I should see "Cat 1" in the ".page-context-header" "css_element"And I should see "Upload a backup file" in the "region-main" "region"And I should see "Cat 1" in the ".block_navigation .active_tree_node" "css_element"Scenario: Admin user navigates to category Manage course backups pageGiven I log in as "admin"And I navigate to "Courses > Manage courses and categories" in site administrationAnd I follow "Cat 1"And I navigate to "Restore course" in current page administrationWhen I press "Manage course backups"Then I should see "Courses" in the ".breadcrumb" "css_element"And I should see "Cat 1" in the ".breadcrumb" "css_element"And I should see "Restore course" in the ".breadcrumb" "css_element"And I should see "Manage course backups" in the ".breadcrumb" "css_element"And I should see "Cat 1" in the ".page-context-header" "css_element"And I should see "Manage course backups" in the "region-main" "region"And I should see "Cat 1" in the ".block_navigation .active_tree_node" "css_element"Scenario: Admin user navigates to category 'content bank' pageGiven I log in as "admin"And I navigate to "Courses > Manage courses and categories" in site administrationAnd I follow "Cat 1"When I navigate to "Content bank" in current page administrationThen I should see "Courses" in the ".breadcrumb" "css_element"And I should see "Cat 1" in the ".breadcrumb" "css_element"And I should see "Content bank" in the ".breadcrumb" "css_element"And I should see "Cat 1" in the ".page-context-header" "css_element"And I should see "Content bank" in the "region-main" "region"And I should see "Cat 1" in the ".block_navigation .active_tree_node" "css_element"