diff --git a/tests/components/ct-react-vite/tests/render.spec.tsx b/tests/components/ct-react-vite/tests/render.spec.tsx index d00a313e9e..b7d0e61b29 100644 --- a/tests/components/ct-react-vite/tests/render.spec.tsx +++ b/tests/components/ct-react-vite/tests/render.spec.tsx @@ -46,3 +46,8 @@ test('render inline component with an error if its nested', async ({ mount }) => )).rejects.toThrow('Component "MyInlineComponent" cannot be mounted.'); }); + +test('render Fragment shorthand notation', { annotation: { type: 'issue', description: 'https://github.com/microsoft/playwright/issues/32853' } }, async ({ mount }) => { + const component = await mount(<>Learn React); + await expect(component).toContainText('Learn React'); +}); diff --git a/tests/playwright-test/playwright.ct-react.spec.ts b/tests/playwright-test/playwright.ct-react.spec.ts index 2ffa6ee63c..ed3fa47caf 100644 --- a/tests/playwright-test/playwright.ct-react.spec.ts +++ b/tests/playwright-test/playwright.ct-react.spec.ts @@ -596,22 +596,3 @@ test('should allow import from shared file', async ({ runInlineTest }) => { expect(result.exitCode).toBe(0); expect(result.passed).toBe(1); }); - - -test('should render fragment at root', async ({ runInlineTest }) => { - const result = await runInlineTest({ - 'playwright.config.ts': playwrightCtConfigText, - 'playwright/index.html': ``, - 'playwright/index.ts': ``, - 'src/component.spec.tsx': ` - import { test, expect } from '@playwright/experimental-ct-react'; - - test('should work', async ({ mount, page }) => { - const component = await mount(<>Learn React); - await expect(component).toContainText('Learn React'); - }); - ` - }); - expect(result.exitCode).toBe(0); - expect(result.passed).toBe(1); -}); \ No newline at end of file