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 ( {