rename test component

This commit is contained in:
Simon Knott 2024-10-04 12:29:55 +02:00
parent 39efe83d15
commit 75636744ba
No known key found for this signature in database
GPG key ID: 8CEDC00028084AEC
3 changed files with 4 additions and 4 deletions

View file

@ -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 });

View file

@ -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 });