import { test, expect } from '@playwright/experimental-ct-solid'; import Button from '@/components/Button'; import DefaultChildren from '@/components/DefaultChildren'; import MultipleChildren from '@/components/MultipleChildren'; import CheckChildrenProp from '@/components/CheckChildrenProp' test('render a default child', async ({ mount }) => { const component = await mount( Main Content ); await expect(component).toContainText('Main Content'); }); test('render multiple children', async ({ mount }) => { const component = await mount(
One
Two
); await expect(component.getByTestId('one')).toContainText('One'); await expect(component.getByTestId('two')).toContainText('Two'); }); test('render a component as child', async ({ mount }) => { const component = await mount(