playwright/examples/components-vue/src/components/HelloWorld.spec.tsx
2022-05-06 12:02:07 -07:00

11 lines
334 B
TypeScript

import { test, expect } from '@playwright/experimental-ct-vue'
import HelloWorld from './HelloWorld.vue'
test.use({ viewport: { width: 500, height: 500 } })
test('should work', async ({ mount }) => {
const component = await mount(<HelloWorld msg='Greetings'></HelloWorld>)
await expect(component).toContainText('Greetings')
})