playwright/tests
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
..
android test: update to android-35 SDK (Android 15) (#32430) 2024-09-06 14:27:56 +02:00
assets test: add test for avif image format (#32815) 2024-09-27 10:02:54 -07:00
bidi chore(bidi): enable logs in Firefox on CI (#32908) 2024-10-01 11:15:27 -07:00
components fix(ct-react): support shorthand fragment notation (#32900) 2024-10-02 11:19:09 +02:00
config test: brush up fixtures, unflake some tests (#32854) 2024-09-27 07:06:37 -07:00
electron chore: update flakiness metadata for better ui presentation (#31528) 2024-07-03 08:39:53 -07:00
expect chore: roll expect and move it to third party (#32458) 2024-09-09 13:12:20 -07:00
image_tools chore: bump @babel dependencies (#27632) 2023-10-17 20:52:41 +02:00
installation test: retry installation tests up to 3 times (#32910) 2024-10-01 13:12:38 -07:00
library feat(trace): highlight strict mode violation elements in the snapshot (#32893) 2024-10-02 00:00:45 -07:00
page test: unflake two tests (#32879) 2024-09-30 07:49:18 -07:00
playwright-test chore(ui): ensure that --ignore-snapshots is respected (#32875) 2024-09-30 15:12:37 +02:00
stress test: fix stress tests bots (#32513) 2024-09-09 12:52:40 +02:00
third_party/proxy chore: fix typos (#30645) 2024-05-08 19:40:03 +01:00
webview2 chore: update flakiness metadata for better ui presentation (#31528) 2024-07-03 08:39:53 -07:00
.eslintrc.js chore: strengthen linting (#29669) 2024-02-26 16:52:28 -08:00
tsconfig.json chore: use own socks5 server for tests (#31639) 2024-07-11 14:12:48 +02:00