playwright icon indicating copy to clipboard operation
playwright copied to clipboard

[BUG][experimental-ct-react] Test doesn't work when using twin.macro

Open Pewww opened this issue 2 years ago • 1 comments
trafficstars

System info

  • Playwright(experimental-ct-react) Version: v1.33.0
  • Operating System: macOS 12.5.1
  • Browser: All
  • Other info:

Source code

  • [x] I provided exact source code that allows reproducing the issue locally.

Link to the GitHub repository with the repro

https://github.com/Pewww/playwright-experimental-ct-react-test

Steps

  • Install dependencies
  • Run test

Expected

It shows normal App page.

Actual

Test stops when declaring 'selector' variable in 'mount' function.

image

Pewww avatar May 11 '23 06:05 Pewww

I'm seeing a couple of bug on twin.macro and vite about it:

https://github.com/ben-rogerson/twin.macro/issues/789 https://github.com/vitejs/vite/issues/1942

pavelfeldman avatar May 11 '23 21:05 pavelfeldman