Page MenuHomePhabricator

Reorder form fields and add unknown type
Closed, ResolvedPublic

Description

Background

The intake form should be designed to help users write a wish effectively. We initially designed the form to lead with "wish type" and "project," where certain folks might not know what they're selecting. By re-ordering the fields, we think users will be filling out the most essential information first.

user story

given that I want to create a wish, when I go to the page, then I should see a title first, followed by description, so that I am sharing the most important information first.

requirements

The form fields have been reordered in the designs, to be:

  • Title
  • Description
  • Wish type
  • Project
  • Audience
  • Tasks

A new radio button has also been added to the type field, with label "I'm not sure / I don't know", and description "After receiving your wish, we will assign it to relevant problem area."

BDD

Feature: Reordering Wish Form Fields

Scenario: Reorder fields to prioritize essential information
  Given the user is on the Wish form page
  When the form is displayed
  Then the fields should be ordered as Title, Description, Wish type, Project, Audience, and Tasks

Scenario: Add 'unknown' option to Wish type
  Given the user is on the Wish form page
  When the user views the Wish type field
  Then there should be an option labeled "I'm not sure / I don't know" with an appropriate description

Scenario: Ensure Wish type field is mandatory without a default selection
  Given the user is on the Wish form page
  When the user tries to submit the form without selecting a Wish type
  Then an error message should indicate that the Wish type field is required
Test Steps

Test Case 1: Ensure Fields are Reordered Correctly

  1. Open Wikipedia and navigate to the Wish form.
  2. Verify that the form fields are ordered as Title, Description, Wish type, Project, Audience, and Tasks.
  3. AC1: Confirm that the form fields are in the correct order.

Test Case 2: Verify 'Unknown' Option in Wish Type

  1. Open Wikipedia and navigate to the Wish form.
  2. Check the Wish type field for the "I'm not sure / I don't know" option.
  3. AC2: Confirm the presence and description of the "I'm not sure / I don't know" option.

Test Case 3: Ensure Wish Type Field is Mandatory

  1. Open Wikipedia and navigate to the Wish form.
  2. Attempt to submit the form without selecting a Wish type.
  3. AC3: Confirm that an error message indicates the Wish type field is required.

QA Results - PatchDemo

ACStatusDetails
1โœ…T365156#9823684
2โœ…T365156#9823684
3โœ…T365156#9823684

Details

TitleReferenceAuthorSource BranchDest Branch
Reorder form fields and add unknown typerepos/commtech/wishlist-intake!39samwilsonunknown-wishtype-T365156main
Customize query in GitLab

Event Timeline

Restricted Application added a subscriber: Aklapper. ยท View Herald Transcript

Regarding adding 'unknown' to the wish type: currently 'feature' is selected by default, but I imagine that we want a) none to be selected initially; and b) it to be a requirement to select something (now that 'unknown' is to be an option). Sound correct?

Samwilson added a subscriber: JSengupta-WMF.

Done.

@JSengupta-WMF You might want to look at the vertical spacing of the form fields (especially the top of the form), I was slightly guessing (but figured it'd be caught in the design review later).

@Samwilson The task has been reviewed and all acceptance criteria have been met. I will move this to Done. Thanks for all your work!

Test Result - PatchDemo

Status: โœ… PASS
Environment: PatchDemo
OS: macOS Sonoma 14.5
Browser: Chrome 125
Device: MBA
Emulated Device:NA
Test link: https://patchdemo.wmflabs.org/wikis/daa3db7f2e/wiki/Community_Requests/Intake

Test Steps

โœ… AC1: Confirm that the form fields are in the correct order.

2024-05-22_15-28-58.png (1ร—1 px, 195 KB)

โœ… AC2: Confirm the presence and description of the "I'm not sure / I don't know" option.

2024-05-22_15-29-50.png (1ร—1 px, 195 KB)

โœ… AC3: Confirm that an error message indicates the Wish type field is required.

2024-05-22_15-31-17.png (1ร—1 px, 202 KB)