playwright/examples/components-vue/src/components/WelcomeItem.spec.tsx

24 lines
681 B
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import { test, expect } from '@playwright/experimental-ct-vue'
import DocumentationIcon from './icons/IconDocumentation.vue'
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>
Vues
<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')
})