From 9c35602d24b97890419f51c5897102ed370562b4 Mon Sep 17 00:00:00 2001 From: Josh Black Date: Tue, 11 Jun 2024 12:25:45 -0500 Subject: [PATCH] test: update test to call for escape instead of backdrop --- packages/react/src/Dialog/Dialog.test.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/react/src/Dialog/Dialog.test.tsx b/packages/react/src/Dialog/Dialog.test.tsx index 4b99148fb46..f1d33d57d49 100644 --- a/packages/react/src/Dialog/Dialog.test.tsx +++ b/packages/react/src/Dialog/Dialog.test.tsx @@ -82,7 +82,7 @@ describe('Dialog', () => { const backdrop = dialog.parentElement! await user.click(backdrop) - expect(onClose).toHaveBeenCalledWith('backdrop') + expect(onClose).toHaveBeenCalledWith('escape') }) it('calls `onClose` when keying "Escape"', async () => {