1 |
efrain |
1 |
@core @core_admin
|
|
|
2 |
Feature: Navigate site administration pages
|
|
|
3 |
In order to configure my site
|
|
|
4 |
As an admin
|
|
|
5 |
I need to be able to navigate the site administration pages
|
|
|
6 |
|
|
|
7 |
@javascript
|
|
|
8 |
Scenario: Navigate to an admin category page
|
|
|
9 |
Given I log in as "admin"
|
|
|
10 |
When I navigate to "Plugins > Activity modules > Assignment" in site administration
|
|
|
11 |
# Ensure secondary navigation is still present and "Plugins" is selected.
|
|
|
12 |
Then "//a[@aria-current = 'true' and normalize-space() = 'Plugins']" "xpath" should exist in the ".secondary-navigation" "css_element"
|
|
|
13 |
And I should see "Category: Assignment"
|
|
|
14 |
|
|
|
15 |
@javascript
|
|
|
16 |
Scenario: Navigate to an admin settings page
|
|
|
17 |
Given I log in as "admin"
|
|
|
18 |
When I navigate to "Plugins > Activity modules > Forum" in site administration
|
|
|
19 |
# Ensure secondary navigation is still present and "Plugins" is selected.
|
|
|
20 |
Then "//a[@aria-current = 'true' and normalize-space() = 'Plugins']" "xpath" should exist in the ".secondary-navigation" "css_element"
|
|
|
21 |
And I should see "Forum"
|