import { test, expect } from '@playwright/experimental-ct-react'; import App from './App'; import Button from './components/Button'; import DefaultChildren from './components/DefaultChildren'; import MultipleChildren from './components/MultipleChildren'; import MultiRoot from './components/MultiRoot'; import Counter from './components/Counter'; import EmptyFragment from './components/EmptyFragment'; import type { HooksConfig } from '../playwright'; test.use({ viewport: { width: 500, height: 500 } }); test('render props', async ({ mount }) => { const component = await mount() await component.click() expect(messages).toEqual(['hello']) }) test('render a default child', async ({ mount }) => { const component = await mount( Main Content ) await expect(component).toContainText('Main Content') }) test('render a component as slot', async ({ mount }) => { const component = await mount(