Proyectos de Subversion Moodle

Rev

Rev 1 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 1 Rev 1441
Línea 141... Línea 141...
141
    # Confirm the popover is not showing any unread notifications.
141
    # Confirm the popover is not showing any unread notifications.
142
    Then I should not see "1" in the "#nav-notification-popover-container [data-region='count-container']" "css_element"
142
    Then I should not see "1" in the "#nav-notification-popover-container [data-region='count-container']" "css_element"
143
    # Open the popover.
143
    # Open the popover.
144
    And I open the notification popover
144
    And I open the notification popover
145
    # Confirm the submission notification is NOT visible.
145
    # Confirm the submission notification is NOT visible.
146
    And I should not see "You have submitted your assignment submission for Test assignment name" in the "#nav-notification-popover-container" "css_element"
146
    And I should not see "Assignment submission confirmation" in the "#nav-notification-popover-container" "css_element"
147
    And I log in as "student2"
147
    And I log in as "student2"
148
    # Confirm the popover is showing the unread notifications.
148
    # Confirm the popover is showing the unread notifications.
149
    Then I should see "1" in the "#nav-notification-popover-container [data-region='count-container']" "css_element"
149
    Then I should see "1" in the "#nav-notification-popover-container [data-region='count-container']" "css_element"
150
    # Open the popover.
150
    # Open the popover.
151
    And I open the notification popover
151
    And I open the notification popover
152
    # Confirm the submission notification is visible.
152
    # Confirm the submission notification is visible.
153
    And I should see "You have submitted your assignment submission for Test assignment name" in the "#nav-notification-popover-container" "css_element"
153
    And I should see "Assignment submission confirmation" in the "#nav-notification-popover-container" "css_element"
Línea 154... Línea 154...
154
 
154
 
155
  Scenario: User cannot disable forced notification preferences
155
  Scenario: User cannot disable forced notification preferences
156
    Given the following "courses" exist:
156
    Given the following "courses" exist:
157
      | fullname | shortname | category | groupmode |
157
      | fullname | shortname | category | groupmode |
Línea 180... Línea 180...
180
    # Confirm the popover is saying 1 unread notifications.
180
    # Confirm the popover is saying 1 unread notifications.
181
    Then I should see "1" in the "#nav-notification-popover-container [data-region='count-container']" "css_element"
181
    Then I should see "1" in the "#nav-notification-popover-container [data-region='count-container']" "css_element"
182
    # Open the popover.
182
    # Open the popover.
183
    And I open the notification popover
183
    And I open the notification popover
184
    # Confirm the submission notification is visible.
184
    # Confirm the submission notification is visible.
185
    And I should see "You have submitted your assignment submission for Test assignment name" in the "#nav-notification-popover-container" "css_element"
185
    And I should see "Assignment submission confirmation" in the "#nav-notification-popover-container" "css_element"
Línea 186... Línea 186...
186
 
186
 
187
  Scenario: User cannot disable disallowed notification preferences
187
  Scenario: User cannot disable disallowed notification preferences
188
    Given the following "courses" exist:
188
    Given the following "courses" exist:
189
      | fullname | shortname | category | groupmode |
189
      | fullname | shortname | category | groupmode |
Línea 212... Línea 212...
212
    # Confirm the popover is not showing any unread notifications.
212
    # Confirm the popover is not showing any unread notifications.
213
    Then I should not see "1" in the "#nav-notification-popover-container [data-region='count-container']" "css_element"
213
    Then I should not see "1" in the "#nav-notification-popover-container [data-region='count-container']" "css_element"
214
    # Open the popover.
214
    # Open the popover.
215
    And I open the notification popover
215
    And I open the notification popover
216
    # Confirm the submission notification is NOT visible.
216
    # Confirm the submission notification is NOT visible.
217
    And I should not see "You have submitted your assignment submission for Test assignment name" in the "#nav-notification-popover-container" "css_element"
217
    And I should not see "Assignment submission confirmation" in the "#nav-notification-popover-container" "css_element"
-
 
218
 
-
 
219
  Scenario: Toggle notification preferences hides/displays options
-
 
220
    Given I log in as "admin"
-
 
221
    When I follow "Preferences" in the user menu
-
 
222
    And I click on "Notification preferences" "link" in the "#page-content" "css_element"
-
 
223
    Then I should see "Subscribed forum posts"
-
 
224
    And I navigate to "Messaging > Notification settings" in site administration
-
 
225
    And I click on "Subscribed forum posts" "checkbox"
-
 
226
    And I follow "Preferences" in the user menu
-
 
227
    And I click on "Notification preferences" "link" in the "#page-content" "css_element"
-
 
228
    And I should not see "Subscribed forum posts"