14 lines
411 B
TypeScript
14 lines
411 B
TypeScript
import { test, expect } from '@playwright/experimental-ct-vue2';
|
|
import Button from '@/components/Button.vue';
|
|
|
|
test('unmount', async ({ page, mount }) => {
|
|
const component = await mount(Button, {
|
|
props: {
|
|
title: 'Submit',
|
|
},
|
|
});
|
|
await expect(page.locator('#root')).toContainText('Submit');
|
|
await component.unmount();
|
|
await expect(page.locator('#root')).not.toContainText('Submit');
|
|
});
|