Discovered during testing of T393608: [ReadingLists] Move bookmark action button to toolbar (T393608#10835903)
Steps to replicate the issue (include links if applicable):
- Make sure reading list beta feature is enabled
- Visit https://en.wikipedia.beta.wmflabs.org/wiki/BeforeEach-name-0.8910053679810723-I%C3%B1t%C3%ABrn%C3%A2ti%C3%B4n%C3%A0liz%C3%A6ti%C3%B8n
- Click bookmark icon
- Refresh page
What happens?:
Bookmark doesn't fill.
There is an error index.js:106 Uncaught (in promise) readinglists-db-error-already-set-up in the console.
What should have happened instead?:
Bookmark is filled before and after page load
Software version (on Special:Version page; skip for WMF-hosted wikis like Wikipedia):
Other information (browser name/version, screenshots, etc.):
Cannot be replicated on https://mylists.wmcloud.org/index.php/Main_Page
Requirement
When the bookmark icon is clicked while the Reading List beta feature is enabled, the bookmark should persist across page reloads. The icon must retain its "filled" state, indicating that the article remains bookmarked, and the data-list-id attribute should be correctly applied. This functionality must work consistently on the Beta cluster without throwing errors in the console.
BDD
Feature: Bookmark persistence and data attributes Scenario: Bookmark persists after reload Given the Reading List beta feature is enabled And I visit an article on the beta cluster When I click the bookmark icon And I refresh the page Then the bookmark icon should remain filled And the data-mw-list-id attribute should be present And there should be no console error related to readinglists-db
Test Steps
Test Case 1: Bookmark persists across reloads
- Enable the Reading list beta feature on https://en.wikipedia.beta.wmflabs.org.
- Visit: https://en.wikipedia.beta.wmflabs.org/wiki/BeforeEach-name-0.8910053679810723-I%C3%B1t%C3%ABrn%C3%A2ti%C3%B4n%C3%A0liz%C3%A6ti%C3%B8n
- Click the bookmark icon next to the watchstar.
- Refresh the page.
- Inspect the bookmark icon element in DevTools.
- AC1: The bookmark icon remains filled.
- AC2: The data-mw-list-id attribute exists on the icon element.
- AC3: There are no errors in the DevTools Console, specifically none containing readinglists-db-error-already-set-up.
QA Results - Beta
| AC | Status | Details |
|---|---|---|
| 1 | ✅ | T394736#10869199 |
| 2 | ✅ | T394736#10869199 |
| 3 | ✅ | T394736#10869199 |
QA Results - Prod
| AC | Status | Details |
|---|---|---|
| 1 | ✅ | T394736#10871550 |
| 2 | ✅ | T394736#10871550 |
| 3 | ✅ | T394736#10871550 |



