rename test component
This commit is contained in:
parent
39efe83d15
commit
75636744ba
|
|
@ -2,7 +2,7 @@ import { test, expect } from '@playwright/experimental-ct-vue';
|
||||||
import DefaultSlot from '@/components/DefaultSlot.vue';
|
import DefaultSlot from '@/components/DefaultSlot.vue';
|
||||||
import NamedSlots from '@/components/NamedSlots.vue';
|
import NamedSlots from '@/components/NamedSlots.vue';
|
||||||
import Button from '@/components/Button.vue';
|
import Button from '@/components/Button.vue';
|
||||||
import HelloWorld from "@/components/HelloWorld.vue";
|
import SlotDefaultValue from "@/components/SlotDefaultValue.vue";
|
||||||
|
|
||||||
test('render a default slot', async ({ mount }) => {
|
test('render a default slot', async ({ mount }) => {
|
||||||
const component = await mount(DefaultSlot, {
|
const component = await mount(DefaultSlot, {
|
||||||
|
|
@ -55,7 +55,7 @@ test('render a component with a named slot', async ({ mount }) => {
|
||||||
test('updating slot should work', { annotation: { type: 'issue', description: 'https://github.com/microsoft/playwright/issues/32809' } }, async ({ mount }) => {
|
test('updating slot should work', { annotation: { type: 'issue', description: 'https://github.com/microsoft/playwright/issues/32809' } }, async ({ mount }) => {
|
||||||
const slots = { default: 'foo' };
|
const slots = { default: 'foo' };
|
||||||
|
|
||||||
const component = await mount(HelloWorld, { slots });
|
const component = await mount(SlotDefaultValue, { slots });
|
||||||
await expect(component).toHaveText('foo');
|
await expect(component).toHaveText('foo');
|
||||||
|
|
||||||
await component.update({ slots });
|
await component.update({ slots });
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@ import { test, expect } from '@playwright/experimental-ct-vue';
|
||||||
import DefaultSlot from '@/components/DefaultSlot.vue';
|
import DefaultSlot from '@/components/DefaultSlot.vue';
|
||||||
import NamedSlots from '@/components/NamedSlots.vue';
|
import NamedSlots from '@/components/NamedSlots.vue';
|
||||||
import Button from '@/components/Button.vue';
|
import Button from '@/components/Button.vue';
|
||||||
import HelloWorld from "@/components/HelloWorld.vue";
|
import SlotDefaultValue from "@/components/SlotDefaultValue.vue";
|
||||||
|
|
||||||
test('render a default slot', async ({ mount }) => {
|
test('render a default slot', async ({ mount }) => {
|
||||||
const component = await mount(DefaultSlot, {
|
const component = await mount(DefaultSlot, {
|
||||||
|
|
@ -54,7 +54,7 @@ test('render a component with a named slot', async ({ mount }) => {
|
||||||
test('updating slot should work', { annotation: { type: 'issue', description: 'https://github.com/microsoft/playwright/issues/32809' } }, async ({ mount }) => {
|
test('updating slot should work', { annotation: { type: 'issue', description: 'https://github.com/microsoft/playwright/issues/32809' } }, async ({ mount }) => {
|
||||||
const slots = { default: 'foo' };
|
const slots = { default: 'foo' };
|
||||||
|
|
||||||
const component = await mount(HelloWorld, { slots });
|
const component = await mount(SlotDefaultValue, { slots });
|
||||||
await expect(component).toHaveText('foo');
|
await expect(component).toHaveText('foo');
|
||||||
|
|
||||||
await component.update({ slots });
|
await component.update({ slots });
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue