diff --git a/packages/astro/e2e/client-only.test.js b/packages/astro/e2e/client-only.test.js index a4ec8a9c8cc37..78a06fdbe31b7 100644 --- a/packages/astro/e2e/client-only.test.js +++ b/packages/astro/e2e/client-only.test.js @@ -28,7 +28,7 @@ test.describe('Client only', () => { const count = await counter.locator('pre'); await expect(count, 'initial count is 0').toHaveText('0'); - const children = await counter.locator('h1'); + const children = await counter.locator('.children'); await expect(children, 'children exist').toHaveText('react'); const increment = await counter.locator('.increment'); @@ -46,7 +46,7 @@ test.describe('Client only', () => { const count = await counter.locator('pre'); await expect(count, 'initial count is 0').toHaveText('0'); - const children = await counter.locator('h1'); + const children = await counter.locator('.children'); await expect(children, 'children exist').toHaveText('preact'); const increment = await counter.locator('.increment'); @@ -64,7 +64,7 @@ test.describe('Client only', () => { const count = await counter.locator('pre'); await expect(count, 'initial count is 0').toHaveText('0'); - const children = await counter.locator('h1'); + const children = await counter.locator('.children'); await expect(children, 'children exist').toHaveText('solid'); const increment = await counter.locator('.increment'); @@ -82,7 +82,7 @@ test.describe('Client only', () => { const count = await counter.locator('pre'); await expect(count, 'initial count is 0').toHaveText('0'); - const children = await counter.locator('h1'); + const children = await counter.locator('.children'); await expect(children, 'children exist').toHaveText('vue'); const increment = await counter.locator('.increment'); @@ -100,7 +100,7 @@ test.describe('Client only', () => { const count = await counter.locator('pre'); await expect(count, 'initial count is 0').toHaveText('0'); - const children = await counter.locator('h1'); + const children = await counter.locator('.children'); await expect(children, 'children exist').toHaveText('svelte'); const increment = await counter.locator('.increment'); diff --git a/packages/astro/e2e/fixtures/client-only/src/components/PreactCounter.tsx b/packages/astro/e2e/fixtures/client-only/src/components/PreactCounter.tsx index af2258fdfe8fc..b0570046c4f8d 100644 --- a/packages/astro/e2e/fixtures/client-only/src/components/PreactCounter.tsx +++ b/packages/astro/e2e/fixtures/client-only/src/components/PreactCounter.tsx @@ -7,13 +7,11 @@ export function PreactCounter({ children, id }) { const subtract = () => setCount((i) => i - 1); return ( - <> -
{count}- -
{count}+ +
{count}- -
{count}+ +
{count()}+
{ count }- -