Background
In T390762 we enabled adding an article to the default reading list. This task will define the work required to move the "Bookmark" menu item from the Tools -> Actions menu into the toolbar next to the watchstar icon.
User story
As a user, I'd like to easily add an article to my default reading list.
Requirements
- A bookmark icon exists next to the watchstar icon
- Clicking the bookmark icon will add the article to a users default reading list.
- If the article is already added to the default reading list, clicking the bookmark icon will remove it.
BDD
Feature: Optimized reading list bookmark behavior Scenario: No API request on page load Given the reading list beta feature is enabled When I open the network tab and visit any article Then a bookmark icon appears next to the watchstar on both Minerva and Vector skins And no reading list API request occurs on page load
Test Steps
Test Case 1: Verify no reading list API request on page load
Precondition: Make sure you have enabled the Reading List beta feature in user preferences.
- Log in with an existing user account.
- Open the browser DevTools and switch to the Network tab.
- Navigate to any article page (e.g., /wiki/Dog) on the beta cluster.
- AC1: Confirm a bookmark icon appears next to the watchstar in both Minerva and Vector skins.
- AC2: Confirm no API requests related to reading lists are triggered automatically on page load.
Precondition: Create a new user account and enable the Reading List beta feature.
- Navigate to any article page (e.g., /wiki/Cat).
- AC3: Confirm no API requests related to reading lists are triggered on page load.
- Click the bookmark icon next to the watchstar.
- AC4: Confirm the article is added to a newly created default reading list (no errors).
- Refresh the page.
- AC5: Confirm the bookmark icon remains filled, indicating the article is successfully saved.
Design
| button when article has been added to default reading list | Button when article has not been added to default reading list |

















