Closed Bug 1798412 Opened 2 years ago Closed 2 years ago

[Colorway Closet] Add keyboard test for the "Try Colorways" flow

Categories

(Firefox :: Theme, task)

task

Tracking

()

RESOLVED WONTFIX

People

(Reporter: tgiles, Unassigned)

References

Details

(Whiteboard: [fidefe-2022-colorway-closet] )

As far as I can tell, we do not have a test for the following path:

  1. Navigate to Firefox View (or about:addons, but I'm not sure if testing the about:addons path should be part of this bug or not)
  2. Keyboard navigate to the "Try Colorways" button
  3. Activate the button with both Space and Enter (since native HTML buttons should handle both Enter and Space keypresses)
  4. Once the Colorways modal opens, assert that focus is moved to the first radio button in the modal.
  5. Since Bug 1784282 adds keyboard testing for the radio buttons in the modal, we could either skip that with this test or maybe pull that task into this test. No strong opinion one way or the other.
  6. Assert that the "Cancel" button closes the modal when using both Enter and Space
  • We might want to add a check that the Escape key also closes this modal, but this might be covered by some tests for whatever we're using to actually create the modal.

Adding whiteboard so that we can track this ticket on JIRA. Feel free to update it if it is not the appropriate one.

Whiteboard: [fidefe-2022-colorway-closet]
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.