playwright/tests/components
Simon Knott 208a54529d
fix(ct-react): support shorthand fragment notation (#32900)
Closes https://github.com/microsoft/playwright/issues/32853

Vite turns the shorthand fragment notation `<></>` into `import {
Fragment } from "react"; <Fragment></Fragment>`. On the Node.js side of
things, this `react` import resolves to our mock version of React, which
currently mocks `Fragment` as `{}`. Currently, we pass that straight to
`React.createElement`, which throws an error.

The fix is to make our `Fragment` mock detectable with a tag, and when
we render it replace it with the real `__pwReact.Fragment`.
2024-10-02 11:19:09 +02:00
..
ct-react-vite fix(ct-react): support shorthand fragment notation (#32900) 2024-10-02 11:19:09 +02:00
ct-react17 fix(ct): mount then unmount then mount (#30657) 2024-05-14 11:03:46 -07:00
ct-solid fix(ct): mount then unmount then mount (#30657) 2024-05-14 11:03:46 -07:00
ct-svelte test(svelte): migrate svelte-navigator to custom minimal router (#30225) 2024-04-04 16:01:08 +02:00
ct-svelte-vite fix(ct): mount then unmount then mount (#30657) 2024-05-14 11:03:46 -07:00
ct-vue-cli chore: fix typos (#30645) 2024-05-08 19:40:03 +01:00
ct-vue-vite test: fix ct-vue-vite tests (#31406) 2024-06-22 00:50:10 +02:00
ct-vue2-cli fix(ct): mount then unmount then mount (#30657) 2024-05-14 11:03:46 -07:00
.gitignore Revert "chore: use plugins for component testing again (#13977)" (#13998) 2022-05-06 12:02:07 -07:00
test-all.spec.js chore(ct): type check (#18208) 2022-10-20 13:33:25 -07:00