Merge branch 'MDL-84101-404' of https://github.com/lameze/moodle into MOODLE_404_STABLE

This commit is contained in:
Huong Nguyen
2025-01-23 09:09:30 +07:00
2 changed files with 24 additions and 0 deletions
@@ -215,3 +215,15 @@ Feature: Manage notification preferences - Email
And I open the notification popover
# Confirm the submission notification is NOT visible.
And I should not see "You have submitted your assignment submission for Test assignment name" in the "#nav-notification-popover-container" "css_element"
Scenario: Toggle notification preferences hides/displays options
Given I log in as "admin"
When I follow "Preferences" in the user menu
And I click on "Notification preferences" "link" in the "#page-content" "css_element"
Then I should see "Subscribed forum posts"
And I navigate to "Messaging > Notification settings" in site administration
And I click on "Subscribed forum posts" "checkbox"
And I click on "Save changes" "button"
And I follow "Preferences" in the user menu
And I click on "Notification preferences" "link" in the "#page-content" "css_element"
And I should not see "Subscribed forum posts"
@@ -27,3 +27,15 @@ Feature: To be able to see and save user message preferences as admin
And I follow "Preferences" in the user menu
And I click on "Message preferences" "link"
And the field "Email" matches value "0"
Scenario: Only active plugins have corresponding columns on the User preferences notification settings
# Needed for Mobile column to appear on User preferences notification settings.
Given the following config values are set as admin:
| airnotifieraccesskey | test123 |
And I log in as "admin"
And I follow "Preferences" in the user menu
When I click on "Notification preferences" "link" in the "#page-content" "css_element"
# By default, web/popup is enabled. mobile/airnotifier is enabled using an earlier step while email is disabled.
Then "[data-processor-name='popup']" "css_element" should exist
And "[data-processor-name='email']" "css_element" should not exist
And "[data-processor-name='airnotifier']" "css_element" should exist