1 |
efrain |
1 |
@core @tool @tool_analytics @javascript
|
|
|
2 |
Feature: Verify the breadcrumbs in analytics site administration pages
|
|
|
3 |
Whenever I navigate to analytics page in site administration to create, import, edit or restore models
|
|
|
4 |
As an admin
|
|
|
5 |
The breadcrumbs should be visible
|
|
|
6 |
|
|
|
7 |
Background:
|
|
|
8 |
Given I log in as "admin"
|
|
|
9 |
|
|
|
10 |
Scenario: Verify the breadcrumbs in analytics models page by visiting the create model, import model, restore model and edit page
|
|
|
11 |
Given I navigate to "Analytics > Analytics models" in site administration
|
|
|
12 |
And I click on "New model" "link"
|
|
|
13 |
When I click on "Create model" "link"
|
|
|
14 |
Then "Create model" "text" should exist in the ".breadcrumb" "css_element"
|
|
|
15 |
And "Analytics model" "link" should exist in the ".breadcrumb" "css_element"
|
|
|
16 |
And "Analytics" "link" should exist in the ".breadcrumb" "css_element"
|
|
|
17 |
And I press "Cancel"
|
|
|
18 |
# Testing import model page
|
|
|
19 |
And I click on "New model" "link"
|
|
|
20 |
And I click on "Import model" "link"
|
|
|
21 |
And "Import model" "text" should exist in the ".breadcrumb" "css_element"
|
|
|
22 |
And "Analytics model" "link" should exist in the ".breadcrumb" "css_element"
|
|
|
23 |
And "Analytics" "link" should exist in the ".breadcrumb" "css_element"
|
|
|
24 |
And I press "Cancel"
|
|
|
25 |
# Testing restore defaults
|
|
|
26 |
And I click on "New model" "link"
|
|
|
27 |
And I click on "Restore default models" "link"
|
|
|
28 |
And "Restore default models" "text" should exist in the ".breadcrumb" "css_element"
|
|
|
29 |
And "Analytics model" "link" should exist in the ".breadcrumb" "css_element"
|
|
|
30 |
And "Analytics" "link" should exist in the ".breadcrumb" "css_element"
|
|
|
31 |
And I click on "Back" "link"
|
|
|
32 |
# Testing edit page
|
|
|
33 |
And I click on "Actions" "link"
|
|
|
34 |
And I click on "Edit" "link"
|
|
|
35 |
And "Edit \"Courses at risk of not starting\" model" "text" should exist in the ".breadcrumb" "css_element"
|
|
|
36 |
And "Analytics model" "link" should exist in the ".breadcrumb" "css_element"
|
|
|
37 |
And "Analytics" "link" should exist in the ".breadcrumb" "css_element"
|