Pavel Feldman 1bbefce9af
Revert "chore: use plugins for component testing again (#13977)" (#13998)
This reverts commit a2f9f15e3e2419d24b8b1deb87d304c363f93435.
2022-05-06 12:02:07 -07:00

23 lines
615 B
TypeScript

import { test, expect } from '@playwright/experimental-ct-vue'
import NamedSlots from './NamedSlots.vue'
test.use({ viewport: { width: 500, height: 500 } })
test('named slots should work', async ({ mount }) => {
const component = await mount(<NamedSlots>
<template v-slot:header>
Header
</template>
<template v-slot:main>
Main Content
</template>
<template v-slot:footer>
Footer
</template>
</NamedSlots>);
await expect(component).toContainText('Header')
await expect(component).toContainText('Main Content')
await expect(component).toContainText('Footer')
})