From 4b3f5a9c77383e75c12169f6f8e372dbb859dc88 Mon Sep 17 00:00:00 2001 From: Sebastian Silbermann Date: Sun, 28 Jan 2024 10:47:09 +0100 Subject: [PATCH] Assert after flush --- .../__tests__/useFocusWithin-test.internal.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/react-interactions/events/src/dom/create-event-handle/__tests__/useFocusWithin-test.internal.js b/packages/react-interactions/events/src/dom/create-event-handle/__tests__/useFocusWithin-test.internal.js index b410f1b8868ee..f77dd5b779355 100644 --- a/packages/react-interactions/events/src/dom/create-event-handle/__tests__/useFocusWithin-test.internal.js +++ b/packages/react-interactions/events/src/dom/create-event-handle/__tests__/useFocusWithin-test.internal.js @@ -552,6 +552,7 @@ describe.each(table)(`useFocus`, hasPointerEvents => { suspend = false; resolve(); }); + expect(container2.innerHTML).toBe('
'); }); // @gate www @@ -619,6 +620,7 @@ describe.each(table)(`useFocus`, hasPointerEvents => { suspend = false; resolve(); }); + expect(container2.innerHTML).toBe('
'); }); }); });