2022-05-07 03:02:07 +08:00
|
|
|
|
import { test, expect } from '@playwright/experimental-ct-vue'
|
2022-03-16 05:47:42 +08:00
|
|
|
|
|
2022-04-26 13:10:08 +08:00
|
|
|
|
import DocumentationIcon from './icons/IconDocumentation.vue'
|
2022-03-16 05:47:42 +08:00
|
|
|
|
import WelcomeItem from './WelcomeItem.vue'
|
|
|
|
|
|
|
|
|
|
|
|
test.use({ viewport: { width: 500, height: 500 } })
|
|
|
|
|
|
|
|
|
|
|
|
test('should work', async ({ mount }) => {
|
|
|
|
|
|
const component = await mount(<WelcomeItem>
|
|
|
|
|
|
<template v-slot:icon>
|
|
|
|
|
|
<DocumentationIcon />
|
|
|
|
|
|
</template>
|
|
|
|
|
|
<template v-slot:heading>
|
|
|
|
|
|
Documentation
|
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
|
|
Vue’s
|
|
|
|
|
|
<a target="_blank" href="https://vuejs.org/">official documentation</a>
|
|
|
|
|
|
provides you with all information you need to get started.
|
|
|
|
|
|
</WelcomeItem>)
|
|
|
|
|
|
|
|
|
|
|
|
await expect(component).toContainText('Documentation')
|
|
|
|
|
|
})
|