"ESC" key in "Are you sure" modal should close "Are you sure" modal only

Description

Overview:
GIVEN Create/Edit/Derive MARC bib/holdings/authority record page is opened
AND MARC record has unsaved changes
AND "Are you sure" modal is displayed
WHEN User hits "ESC" keyboard key
THEN Close only "Are you sure" modal AND don't close create/edit/derive record page.

Example of scenario:

  1. Go to "Inventory" app

  2. Click on the "Actions" >> Select "New MARC bibliographic record"

  3. Do any edit, ex.: fill in "245 $a"

  4. Click on the "Cancel" button or on the "X" icon or hit "ESC" key to see "Are you sure?" modal

  5. Hit "ESC" keyboard key

Expected Results: "Are you sure" modal is closed. "Create a new MARC bib record" window is still displayed.
Actual Results: "Create a new MARC bib record" window is closed. User is on the "Inventory" main page.
Note: Hitting "ESC" key should do the same as if user clicks on "Keep editing" option in "Are you sure" modal.

Interested parties: ,  

Environment

None

Potential Workaround

None

Checklist

hide

TestRail: Results

Activity

Show:

Denys Bohdan February 1, 2024 at 11:10 AM

Hey , did you have a chance to discuss this ticket with John and Kimie?

Khalilah Gambrell January 4, 2024 at 1:20 PM
Edited

Refinement: KG to discuss with John Coburn and Kimie to confirm UX. 

Denys Bohdan January 4, 2024 at 11:08 AM

Hey and current behaviour is how it works across all apps - hitting Esc on a confirmation modal is treated as Confirming that the user wants to leave the page. Changing this could affect many other app tests and/or e2e tests

Won't Do

Details

Assignee

Reporter

Priority

Development Team

Spitfire

TestRail: Cases

Open TestRail: Cases

TestRail: Runs

Open TestRail: Runs
Created December 20, 2023 at 2:39 PM
Updated February 19, 2024 at 5:40 PM
Resolved February 19, 2024 at 5:40 PM
TestRail: Cases
TestRail: Runs