Proyectos de Subversion Moodle

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1 efrain 1
@javascript @theme_boost
2
Feature: Breadcrumbs navigation
3
  To navigate in boost theme
4
  As an admin user
5
  I should see breadcrumbs
6
 
7
  Scenario: Admin user navigates to site administrations plugins assignment settings
8
    Given I log in as "admin"
9
    When I navigate to "Plugins > Activity modules > Assignment > Assignment settings" in site administration
10
    Then I should see "Activity modules" in the ".breadcrumb" "css_element"
11
    And I should see "Assignment" in the ".breadcrumb" "css_element"
12
    And I should see "Assignment settings" in the ".breadcrumb" "css_element"
13
 
14
  Scenario: Admin user navigates to site adminsitrations plugins assignment feedback offline grading worksheet
15
    Given I log in as "admin"
16
    When I navigate to "Plugins > Activity modules > Assignment > Feedback plugins > Offline grading worksheet" in site administration
17
    Then I should see "Activity modules" in the ".breadcrumb" "css_element"
18
    And I should see "Assignment" in the ".breadcrumb" "css_element"
19
    And I should see "Feedback plugins" in the ".breadcrumb" "css_element"
20
    And I should see "Offline grading worksheet" in the ".breadcrumb" "css_element"
21
 
22
  Scenario: Admin user navigates to site adminsitrations plugins badges manage backpacks page
23
    Given I log in as "admin"
24
    When I navigate to "Badges > Manage backpacks" in site administration
25
    Then I should see "Badges" in the ".breadcrumb" "css_element"
26
    And I should see "Manage backpacks" in the ".breadcrumb" "css_element"
27
 
28
  Scenario: Admin user changes the default home page and navigates to 'course category management' page
29
    Given the following config values are set as admin:
30
      | defaulthomepage | 3 |
31
    And the following "categories" exist:
32
      | name  | category | idnumber |
33
      | Cat 1 | 0        | CAT1     |
34
    And I log in as "admin"
35
    And I navigate to "Courses > Manage courses and categories" in site administration
36
    When I follow "Cat 1"
37
    Then I should not see "My courses" in the ".breadcrumb" "css_element"
38
    And I should see "Cat 1" in the ".breadcrumb" "css_element"
39
    And I should see "Manage courses and categories" in the ".breadcrumb" "css_element"
40
 
41
  Scenario: Admin user sets the default home page to 'Site' and navigates to its 'Preferences' and 'Private files' page
42
    Given the following config values are set as admin:
43
      | defaulthomepage | 0 |
44
    And I log in as "admin"
45
    When I follow "Preferences" in the user menu
46
    # There should be no breadcrumbs on this page.
47
    Then ".breadcrumb-item" "css_element" should not exist in the ".breadcrumb" "css_element"
48
 
49
  Scenario: Admin user sets the default home page to 'Dashboard' and navigates to its 'Preferences' and 'Private files' page
50
    Given the following config values are set as admin:
51
      | defaulthomepage | 1 |
52
    And I log in as "admin"
53
    When I follow "Preferences" in the user menu
54
    # There should be no breadcrumbs on this page.
55
    Then ".breadcrumb-item" "css_element" should not exist in the ".breadcrumb" "css_element"
56
    And I follow "Private files" in the user menu
57
    # There should be no breadcrumbs on this page.
58
    And ".breadcrumb-item" "css_element" should not exist in the ".breadcrumb" "css_element"
59
 
60
  Scenario: Admin user sets the default home page to 'User preference' and navigates to its 'Preferences' and 'Private files' page
61
    Given the following config values are set as admin:
62
      | defaulthomepage | 2 |
63
    And I log in as "admin"
64
    When I follow "Preferences" in the user menu
65
    # There should be no breadcrumbs on this page.
66
    Then ".breadcrumb-item" "css_element" should not exist in the ".breadcrumb" "css_element"
67
    And I follow "Private files" in the user menu
68
    # There should be no breadcrumbs on this page.
69
    And ".breadcrumb-item" "css_element" should not exist in the ".breadcrumb" "css_element"
70
 
71
  Scenario: Admin user sets the default home page to 'My courses' and navigates to its 'Preferences' and 'Private files' page
72
    Given the following config values are set as admin:
73
      | defaulthomepage | 3 |
74
    And I log in as "admin"
75
    When I follow "Preferences" in the user menu
76
    # There should be no breadcrumbs on this page.
77
    Then ".breadcrumb-item" "css_element" should not exist in the ".breadcrumb" "css_element"
78
    And I follow "Private files" in the user menu
79
    # There should be no breadcrumbs on this page.
80
    And ".breadcrumb-item" "css_element" should not exist in the ".breadcrumb" "css_element"