Despite this page being configured to disable night mode, it still appears with the night mode option available:
https://gerrit.wikimedia.org/g/operations/mediawiki-config/+/c3fad820c45104565739853cef9c6c03a4e4a269/wmf-config/skin-Minerva.php#160
Steps to replicate the issue (include links if applicable):
- Set $wgMinervaNightModeOptions['exclude']['pagetitles'] = [ 'Special:AbuseLog' ];
- Visit https://en.wikipedia.org/wiki/Special:AbuseLog/37755352 or other abuselog entry
What happens?:
The page appears in night mode.
Action parameters unreadable
What should have happened instead?:
Night mode should be disabled on this page (as it features OOUI elements which is blocked on T363849)
Software version (on Special:Version page; skip for WMF-hosted wikis like Wikipedia):
Other information (browser name/version, screenshots, etc.):
Also applies to:
- https://en.wikipedia.org/w/index.php?title=Main_Page&diff=1223300368&oldid=1212457119
- https://en.wikipedia.org/w/index.php?title=Special:Watchlist
- https://en.wikipedia.org/wiki/Special:ProtectedPages
- https://en.wikipedia.org/wiki/Special:ProtectedTitles
- https://en.wikipedia.org/wiki/Special:Recentchanges
- https://en.wikipedia.org/wiki/Special:Recentchangeslinked
- https://en.wikipedia.org/wiki/Special:AllMessages
- https://en.wikipedia.org/wiki/Special:Watchlist
- https://en.wikipedia.org/wiki/Special:EditWatchlist
Requirement
Ensure that night mode is correctly excluded from specified pages including Special:AbuseLog, diff pages, and other special pages to maintain readability and usability.
BDD
Feature: Exclude Night Mode from Specified Pages Scenario: Night mode excluded on Special:AbuseLog Given the user is viewing the Special:AbuseLog page When night mode is enabled Then night mode should be disabled on this page Scenario: Night mode excluded on diff pages Given the user is viewing a diff page When night mode is enabled Then night mode should be disabled on this page Scenario: Night mode excluded on specified special pages Given the user is viewing a specified special page When night mode is enabled Then night mode should be disabled on the following pages: | https://en.wikipedia.org/w/index.php?title=Special:Watchlist | | https://en.wikipedia.org/wiki/Special:ProtectedPages | | https://en.wikipedia.org/wiki/Special:Recentchanges | | https://en.wikipedia.org/wiki/Special:Recentchangeslinked | | https://en.wikipedia.org/wiki/Special:AllMessages | | https://en.wikipedia.org/wiki/Special:EditWatchlist | And night mode should be enabled on the following pages: | https://en.wikipedia.org/wiki/Special:ProtectedTitles |
Test Steps
Test Case 1: Night Mode Excluded on Special:AbuseLog
- Ensure night mode is enabled.
- Open the URL for Special:AbuseLog: https://en.wikipedia.org/wiki/Special:AbuseLog/37755352.
- AC1 Confirm that night mode is disabled on the Special:AbuseLog page.
Test Case 2: Night Mode Excluded on Diff Pages
- Ensure night mode is enabled.
- Open the URL for a diff page: https://en.wikipedia.org/w/index.php?title=Main_Page&diff=1223300368&oldid=1212457119.
- AC2 Confirm that night mode is disabled on the diff page.
Test Case 3: Night Mode Excluded on Specified Special Pages
- Ensure night mode is enabled.
- Open the following URLs one by one:
- https://en.wikipedia.org/w/index.php?title=Special:Watchlist
- https://en.wikipedia.org/wiki/Special:ProtectedPages
- https://en.wikipedia.org/wiki/Special:Recentchanges
- https://en.wikipedia.org/wiki/Special:Recentchangeslinked
- https://en.wikipedia.org/wiki/Special:AllMessages
- https://en.wikipedia.org/wiki/Special:EditWatchlist
We will keep the following pages with dark mode since they have no color contrast issues:
- AC3 Confirm that night mode is disabled on each of these pages (ProtectedTitles should be enabled).
QA Results - Prod
AC | Status | Details |
---|---|---|
1 | ✅ | T365084#9840543 |
2 | ✅ | T365084#9840543 |
3 | ✅ | T365084#9840543 |