From d037aadea69e179f11330be6bdbe958ff51dbfa8 Mon Sep 17 00:00:00 2001 From: Marin Atanasov <8436925+tyxla@users.noreply.github.com> Date: Wed, 20 Nov 2024 11:35:26 +0200 Subject: [PATCH] Update useSuspenseSelect tests --- packages/data/src/components/use-select/test/suspense.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/data/src/components/use-select/test/suspense.js b/packages/data/src/components/use-select/test/suspense.js index e8ef4cf0911ec8..8020335604a64b 100644 --- a/packages/data/src/components/use-select/test/suspense.js +++ b/packages/data/src/components/use-select/test/suspense.js @@ -110,10 +110,10 @@ describe( 'useSuspenseSelect', () => { render( ); await screen.findByLabelText( 'loaded' ); - // Verify there were 3 attempts to render. Suspended twice because of + // Verify there were 4 attempts to render. Suspended twice because of // `getToken` and `getData` selectors not being resolved, and then finally // rendered after all data got loaded. - expect( attempts ).toBe( 3 ); + expect( attempts ).toBe( 4 ); expect( renders ).toBe( 1 ); } ); @@ -230,7 +230,7 @@ describe( 'useSuspenseSelect', () => { expect( slowLabel ).toHaveTextContent( 'slow' ); // TODO: Understand what's going on here. This has to be reverted. - expect( FastUI ).toHaveBeenCalledTimes( 3 ); - expect( SlowUI ).toHaveBeenCalledTimes( 2 ); + expect( FastUI ).toHaveBeenCalledTimes( 4 ); + expect( SlowUI ).toHaveBeenCalledTimes( 3 ); } ); } );