You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
import{test,expect}from'@playwright/experimental-ct-react';test('should work',async({ mount })=>{constcomponent=awaitmount(<>Learn React</>);// fails to renderawaitexpect(component).toContainText('Learn React');});
Version
1.47.2
Steps to reproduce
Code:
or:
npm install
npm run test:ct
Expected behavior
The component renders even if a React fragment is on top.
Actual behavior
Nothing is rendred at all. Empty page with react errors
Additional context
Also worth to mention:
npm init playwright@latest -- --ct
did not work for me. The component test part was not includedEnvironment
The text was updated successfully, but these errors were encountered: