Page MenuHomePhabricator

Logged out users cannot edit a wish and don't know why
Closed, ResolvedPublicBUG REPORT

Description

Steps to replicate the issue (include links if applicable):

  • When a user who is logged out clicks on "edit wish" from a wish page, nothing appears to happen. The gadget requires a user to log in.

What happens?:

What should have happened instead?:

  • Either the gadget should load and show a message to log in, or the user should be directed to the login form, and then upon login, be redirected to the gadget.

Software version (on Special:Version page; skip for WMF-hosted wikis like Wikipedia):

Other information (browser name/version, screenshots, etc.):

Derived Requirement

Ensure that logged-out users who attempt to edit a wish are either shown a message to log in or are redirected to the login form and then returned to the gadget after logging in.

BDD

Feature: Edit Wish for Logged-out Users

Scenario: Prompt or Redirect Logged-out Users When Editing a Wish

Given a logged-out user on a wish page
When the user clicks on "edit wish"
Then they should either see a message to log in or be redirected to the login form
And upon logging in, they should be redirected back to the gadget
Test Steps

Test Case 1: Logged-out User Attempting to Edit a Wish

Open Wikipedia and navigate to a wish page while logged out.
Click on "edit wish."
✅❓❌⬜ AC1: Confirm that the user either sees a message to log in or is redirected to the login form.
Log in.
✅❓❌⬜ AC2: Confirm that after logging in, the user is redirected back to the gadget.

QA Results - Wishlist-test.toolforge

ACStatusDetails
1T368633#9946867
2T368633#9946867

Details

TitleReferenceAuthorSource BranchDest Branch
mediawiki-pages: link 'Edit wish' to login and redirect for anonsrepos/commtech/wishlist-intake!125musikanimallogged-out-edit-wishmain
Customize query in GitLab

Event Timeline

@MusikAnimal Logged-out users go to the login screen if they are trying to edit. When logged in, it redirects back to the gadget as seen in the gifs below. I will move this to Done. Thanks for all your work!

Test Result - Wishlist-test.toolforge

Status: ✅ PASS
Environment: Wishlist-test.toolforge
OS: macOS Sonoma 14.5
Browser: Chrome 126
Device: MBA
Emulated Device: NA

Test Artifact(s):

Test Steps

Test Case 1: Logged-out User Attempting to Edit a Wish

Open Wikipedia and navigate to a wish page while logged out.
Click on "edit wish."
✅❓❌⬜ AC1: Confirm that the user either sees a message to log in or is redirected to the login form.

2024-07-02_12-28-07.mp4.gif (624×1 px, 742 KB)

✅❓❌⬜ AC2: Confirm that after logging in, the user is redirected back to the gadget.

2024-07-02_12-30-42.mp4.gif (628×994 px, 1 MB)