| 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"
 | 
        
           | 1441 | ariadna | 9 |     And the following config values are set as admin:
 | 
        
           |  |  | 10 |       | enableanalytics | 1 |
 | 
        
           |  |  | 11 |     And a Python Machine Learning backend server is configured
 | 
        
           |  |  | 12 |     And I change the Python Machine Learning backend to use external server
 | 
        
           | 1 | efrain | 13 |   | 
        
           |  |  | 14 |   Scenario: Verify the breadcrumbs in analytics models page by visiting the create model, import model, restore model and edit page
 | 
        
           |  |  | 15 |     Given I navigate to "Analytics > Analytics models" in site administration
 | 
        
           |  |  | 16 |     And I click on "New model" "link"
 | 
        
           |  |  | 17 |     When I click on "Create model" "link"
 | 
        
           |  |  | 18 |     Then "Create model" "text" should exist in the ".breadcrumb" "css_element"
 | 
        
           |  |  | 19 |     And "Analytics model" "link" should exist in the ".breadcrumb" "css_element"
 | 
        
           |  |  | 20 |     And "Analytics" "link" should exist in the ".breadcrumb" "css_element"
 | 
        
           |  |  | 21 |     And I press "Cancel"
 | 
        
           |  |  | 22 |     # Testing import model page
 | 
        
           |  |  | 23 |     And I click on "New model" "link"
 | 
        
           |  |  | 24 |     And I click on "Import model" "link"
 | 
        
           |  |  | 25 |     And "Import model" "text" should exist in the ".breadcrumb" "css_element"
 | 
        
           |  |  | 26 |     And "Analytics model" "link" should exist in the ".breadcrumb" "css_element"
 | 
        
           |  |  | 27 |     And "Analytics" "link" should exist in the ".breadcrumb" "css_element"
 | 
        
           |  |  | 28 |     And I press "Cancel"
 | 
        
           |  |  | 29 |     # Testing restore defaults
 | 
        
           |  |  | 30 |     And I click on "New model" "link"
 | 
        
           |  |  | 31 |     And I click on "Restore default models" "link"
 | 
        
           |  |  | 32 |     And "Restore default models" "text" should exist in the ".breadcrumb" "css_element"
 | 
        
           |  |  | 33 |     And "Analytics model" "link" should exist in the ".breadcrumb" "css_element"
 | 
        
           |  |  | 34 |     And "Analytics" "link" should exist in the ".breadcrumb" "css_element"
 | 
        
           |  |  | 35 |     And I click on "Back" "link"
 | 
        
           |  |  | 36 |     # Testing edit page
 | 
        
           |  |  | 37 |     And I click on "Actions" "link"
 | 
        
           |  |  | 38 |     And I click on "Edit" "link"
 | 
        
           |  |  | 39 |     And "Edit \"Courses at risk of not starting\" model" "text" should exist in the ".breadcrumb" "css_element"
 | 
        
           |  |  | 40 |     And "Analytics model" "link" should exist in the ".breadcrumb" "css_element"
 | 
        
           |  |  | 41 |     And "Analytics" "link" should exist in the ".breadcrumb" "css_element"
 |