What is the problem?
If you unwatch a page via action=unwatch, on the success page the watch star shows the previous state (i.e. full or half-shaded star). On refresh, the correct empty star shows.
This appears to be the same issue as T253937, but for action=unwatch. A similar issue was recorded in T28292.
Raised by @IKhitron on https://meta.wikimedia.org/wiki/Talk:Community_Tech/Watchlist_Expiry#Anything_else_you_would_like_to_add?_4.
Steps to reproduce problem
- Go to https://en.wikipedia.beta.wmflabs.org/w/index.php?title=Selenium_Echo_link_test_0.8809995352983244&action=unwatch
- Click the watch star (you can set a temporary or permanent watch, does not matter)
- Click the "Yes" button
Acceptance Criteria
- If the user unwatches a page via action=unwatch, the star should automatically be empty (rather than displaying the previous state)
Expected behavior: You go to a success page and the watch star is empty
Observed behavior: On the success page, watch star is full/half-full
Extra Notes: If one tries to unwatch a page *not* via the AJAX star, but by direct link to e.g. /w/index.php?title=Foo&action=unwatch (and submit the confirmation form), that POST response has at the top of it a solid blue star. A refresh corrects the error.