import { test, expect } from '@playwright/experimental-ct-react'; import Button from '@/components/Button'; import DefaultChildren from '@/components/DefaultChildren'; import MultipleChildren from '@/components/MultipleChildren'; test('render a default child', async ({ mount }) => { const component = await mount( Main Content ); await expect(component).toContainText('Main Content'); }); test('render a component as child', async ({ mount }) => { const component = await mount(