Background
Following T360092 we want to change default font sizes on certain pages. Since this requires multiple stages to be completed and we have shipped to anonymous users already it will be feature flagged by default.
User story
As a user when I visit certain special pages, I get the traditional small size font.
Requirements
The Vector 2022 skin should allow font size configuration on specific pages and prevent it on others. Font size configuration should be enabled on the following pages:
- /w/index.php?title=T352930
- /wiki/Wikipedia:Users/subpage20
- /wiki/Help:Options_to_not_see_an_image
- /wiki/Draft:Giraffe
Conversely, font size configuration should be disabled on:
- /wiki/Special:Watchlist
- All talk pages
- /wiki/Main_Page?action=info
BDD
Feature: Configure Font Size Settings for Specific Pages on Vector 2022 Scenario: Font size configurable on specific pages Given the user is on betawiki When the user visits the page "/w/index.php?title=T352930" Then the font size should be configurable Given the user is on betawiki When the user visits the page "/wiki/Wikipedia:Users/subpage20" Then the font size should be configurable Given the user is on betawiki When the user visits the page "/wiki/Help:Options_to_not_see_an_image" Then the font size should be configurable Given the user is on betawiki When the user visits the page "/wiki/Draft:Giraffe" Then the font size should be configurable Scenario: Font size not configurable on specific pages Given the user is on betawiki When the user visits the page "/wiki/Special:Watchlist" Then the font size should not be configurable Given the user is on betawiki When the user visits any talk page Then the font size should not be configurable Given the user is on betawiki When the user visits the page "/wiki/Main_Page?action=info" Then the font size should not be configurable
Test Steps
Test Case 1: Font Size Configurable on Specific Pages
- Open Wikipedia on betawiki.
- Visit the page /w/index.php?title=T352930.
- AC1: Confirm that the font size is configurable.
- Visit the page /wiki/Wikipedia:Users/subpage20.
- AC2: Confirm that the font size is configurable.
- Visit the page /wiki/Help:Options_to_not_see_an_image.
- AC3: Confirm that the font size is configurable.
- Visit the page /wiki/Draft:Giraffe.
- AC4: Confirm that the font size is configurable.
Test Case 2: Font Size Not Configurable on Specific Pages
- Open Wikipedia on betawiki.
- Visit the page /wiki/Special:Watchlist.
- AC5: Confirm that the font size is not configurable.
- Visit any talk page.
- AC6: Confirm that the font size is not configurable.
- Visit the page /wiki/Main_Page?action=info.
- AC7: Confirm that the font size is not configurable.
Acceptance criteria
- The following pages should get Standard as the default font size: Namespaces=0,4,12,118.
- All other pages would get Small as the default font size.
- If I visit a page with the standard default font size, if I view in action page other than action=view e.g. https://en.wikipedia.beta.wmflabs.org/wiki/Main_Page?action=info I see the Small font size
- This behaviour is not activated by default. A temporary boolean feature flag (defaulting to false) disables it.
- We enable this behaviour on beta cluster only.
QA
(It will not be possible to QA this in production)
On beta cluster:
- Check font size is configurable on https://en.wikipedia.beta.wmflabs.org/w/index.php?title=T352930
- Check font size is configurable on https://en.wikipedia.beta.wmflabs.org/wiki/Wikipedia:Users/subpage20
- Check font size is configurable on https://en.wikipedia.beta.wmflabs.org/wiki/Help:Options_to_not_see_an_image
- Check font size is configurable on https://en.wikipedia.beta.wmflabs.org/wiki/Draft:Giraffe
- Check font size is not configurable on https://en.wikipedia.beta.wmflabs.org/wiki/Special:Watchlist
- Check font size is not configurable on talk pages
- Check font size is not configurable on https://en.wikipedia.beta.wmflabs.org/wiki/Main_Page?action=info
Communication criteria - does this need an announcement or discussion?
No comms needed.
Rollback plan
No rollback plan needed because we have the temporary feature flag.
Sign off steps
- Create a ticket for handling this in mobile (if needed). If so a developer should create a ticket with details on how the configuration will be shared between the skins?
- Review behaviour on beta cluster (ideally PM and designer). Is it working as expected when disabled? If not please create a ticket for defining the behaviour of the appearance menu and answer the following questions:
- 1) When I visit a page where small is the default font size, can I change font size in the appearance menu? Is it disabled?
- 2) When I visit a page where small is the default font size would small be selected?
- 3) When I visit a page where small is the default should there be a banner saying "This page always appears as small?"
This task was created by Version 1.0.0 of the Web team task template
QA Results - Beta
AC | Status | Details |
---|---|---|
1 | ✅ | T364887#9814837 |
2 | ✅ | T364887#9814837 |
3 | ✅ | T364887#9814837 |
4 | ✅ | T364887#9814837 |
5 | ✅ | T364887#9814837 |
6 | ✅ | T364887#9814837 |
7 | ✅ | T364887#9814837 |