From e748810ea98932f4f3815b19dc2cf996a40cb9c9 Mon Sep 17 00:00:00 2001 From: David Arenas Date: Mon, 29 Jan 2024 16:42:03 +0100 Subject: [PATCH] Fix flaky test --- test/e2e/specs/interactivity/tovdom-islands.spec.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/e2e/specs/interactivity/tovdom-islands.spec.ts b/test/e2e/specs/interactivity/tovdom-islands.spec.ts index 257b0a0fc94b8..849001274cfd5 100644 --- a/test/e2e/specs/interactivity/tovdom-islands.spec.ts +++ b/test/e2e/specs/interactivity/tovdom-islands.spec.ts @@ -44,7 +44,7 @@ test.describe( 'toVdom - islands', () => { } ) => { const el = page.getByTestId( 'island inside another island' ); const templates = el.locator( 'template' ); - expect( await templates.count() ).toEqual( 1 ); + await expect( templates ).toHaveCount( 1 ); } ); test( 'islands inside inner blocks of isolated islands should be hydrated', async ( {