I noticed a couple of issues while attempting to edit categories using mobile frontend on Android and Apple devices.
Prequisites
- Make sure you are in beta and has categories - https://en.m.wikipedia.beta.wmflabs.org/wiki/CategoryTest?mobileaction=beta
Steps:
- Navigated to https://en.wikipedia.beta.wmflabs.org/wiki/Dog
- Tapped Categories at the bottom of the article
- Added the Dog article to the Pets Category
- Tapped Save
Problem
After adding the new category, the user does not see it in the list of categories until the user completely closes the categories page and returns back to categories again.
After selecting save there is an odd sequence of screens. Please see the video. Tapping close(x) should return the user to the article.
~~~There is no way to delete the article from a category using Mobile Frontend.~~~ (by design)
Acceptance criteria
- There is a lag in categories being available with the API. Thus adding a category should close the category overlay and show a toast saying "Category was successfully added to page" to avoid confusing the end user.
- This behaviour is encapsulated in a test
Developer notes
Refreshing the entire page is probably the best option here.
QA steps
- On mobile device navigate to https://en.m.wikipedia.beta.wmflabs.org/wiki/Dog (make sure you are in beta mode!)
- Tap categories at the bottom of the article
- Add a category ([[Category:Pets]], [[Category:Not_a_cat]], [[Category:Food]])
- Tap save
- Verify that you you are told the save was successful