NOTE: Follow up work to T355705
In Minerva, the settings don't appear in-context on an article page. The settings are a full page on their own. As a result, we need to give system feedback when a user visits a relevant page, and we don't need the explainer text in the settings themselves.
We should show a "toast" when a user visits a page where the night mode setting (T355705).
{F41783461}
# QA
* Ask the developer to create a patchdemo where night mode is disabled on all special pages.
* Visit a special page.
As a logged in user
[] On Special:MobileOptions select night mode and visit a page where night mode has been disabled
Expected: I see a notification.
[] On Special:MobileOptions select automatic mode, and select night mode in your operating system settings and visit a page where night mode has been disabled
Expected: I see a notification.
[] On Special:MobileOptions select automatic mode, and select day mode in your operating system settings and visit a page where night mode has been disabled
Expected: I see NO notification.
[] On Special:MobileOptions select day mode and visit a page where night mode has been disabled
Expected: I see NO notification.
Repeat the above for an anonymous user.
# Developer notes
- Detect the page was disabled e.g. check HTML element for a class
- Call mw.notify when the class is detected.