When the "remove" button is clicked on the "remove labels" modal
- the form should submit
- on submission the selected labels should be un-assigned from the selected watchlist items
- then redirect to Special:EditWatchlist in the same place in the pagination
- show a message saying something like "X labels removed from Y pages" (but check with design/product for exact wording)
Derived Requirements
- Submitting the Remove labels modal must trigger a form submission when the Remove button is clicked.
- On successful submission, all selected labels must be unassigned from all selected watchlist items.
- After label removal, the user must be redirected back to Special:EditWatchlist.
- The redirect must preserve the user’s current pagination state.
- A confirmation message must be displayed indicating how many labels were removed from how many pages.
- The confirmation message must appear only after a successful removal action.
- The submission flow must not affect unrelated watchlist items or labels.
Test Steps
Test Case 1: Successful Submission and Label Removal
Preconditions
- The user is logged in.
- Multiple watchlist items are selected.
- The selected items have one or more labels in common.
- The Remove labels modal is open with at least one label selected.
- Click the Remove button in the Remove labels modal.
- Observe the form submission behavior.
- After redirection, inspect the labels column for the previously selected watchlist items.
- ✅❓❌⬜ AC1: Verify that the form submits successfully and all selected labels are unassigned from all selected watchlist items.
Test Case 2: Redirect Preserves Pagination State
Preconditions
- The user is on a paginated page of Special:EditWatchlist other than the first page.
- The Remove labels modal is open from that page.
- Click the Remove button in the modal.
- Observe the page the user is redirected to after submission.
- Check the current pagination page number.
- ✅❓❌⬜ AC2: Verify that the user is redirected back to Special:EditWatchlist on the same pagination page they were on before submitting the modal.
Test Case 3: Confirmation Message Display
Preconditions
- Same as Test Case 1.
- Click the Remove button in the Remove labels modal.
- Observe the UI after redirection.
- Locate the confirmation message.
- Review the message content.
- ✅❓❌⬜ AC3: Verify that a confirmation message is displayed indicating the number of labels removed and the number of affected pages, and that the message appears only after a successful removal.
QA Results -Beta
| AC | Status | Details |
|---|---|---|
| 1 | ✅ | T411760#11527378 |
| 2 | ✅ | T411760#11527378 |
| 3 | ✅ | T411760#11527378 |

