import { test, expect } from '@playwright/experimental-ct-solid' import Button from './components/Button'; import DefaultChildren from './components/DefaultChildren'; import MultiRoot from './components/MultiRoot'; import EmptyFragment from './components/EmptyFragment'; test.use({ viewport: { width: 500, height: 500 } }); test('render props', async ({ mount }) => { const component = await mount() await component.click() expect(messages).toEqual(['hello']) }) test('default child should work', async ({ mount }) => { const component = await mount( Main Content ) await expect(component).toContainText('Main Content') }) test('run hooks', async ({ page, mount }) => { const messages: string[] = []; page.on('console', m => messages.push(m.text())); await mount(