From 75636744bad2b44f82b16ffc4ffb0d4d588b121a Mon Sep 17 00:00:00 2001 From: Simon Knott Date: Fri, 4 Oct 2024 12:29:55 +0200 Subject: [PATCH] rename test component --- .../src/components/{HelloWorld.vue => SlotDefaultValue.vue} | 0 tests/components/ct-vue-vite/tests/slots/slots.spec.js | 4 ++-- tests/components/ct-vue-vite/tests/slots/slots.spec.ts | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) rename tests/components/ct-vue-vite/src/components/{HelloWorld.vue => SlotDefaultValue.vue} (100%) diff --git a/tests/components/ct-vue-vite/src/components/HelloWorld.vue b/tests/components/ct-vue-vite/src/components/SlotDefaultValue.vue similarity index 100% rename from tests/components/ct-vue-vite/src/components/HelloWorld.vue rename to tests/components/ct-vue-vite/src/components/SlotDefaultValue.vue diff --git a/tests/components/ct-vue-vite/tests/slots/slots.spec.js b/tests/components/ct-vue-vite/tests/slots/slots.spec.js index ee41d9d52f..bd28820672 100644 --- a/tests/components/ct-vue-vite/tests/slots/slots.spec.js +++ b/tests/components/ct-vue-vite/tests/slots/slots.spec.js @@ -2,7 +2,7 @@ import { test, expect } from '@playwright/experimental-ct-vue'; import DefaultSlot from '@/components/DefaultSlot.vue'; import NamedSlots from '@/components/NamedSlots.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 }) => { 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 }) => { const slots = { default: 'foo' }; - const component = await mount(HelloWorld, { slots }); + const component = await mount(SlotDefaultValue, { slots }); await expect(component).toHaveText('foo'); await component.update({ slots }); diff --git a/tests/components/ct-vue-vite/tests/slots/slots.spec.ts b/tests/components/ct-vue-vite/tests/slots/slots.spec.ts index 64c8a29886..d847da5552 100644 --- a/tests/components/ct-vue-vite/tests/slots/slots.spec.ts +++ b/tests/components/ct-vue-vite/tests/slots/slots.spec.ts @@ -2,7 +2,7 @@ import { test, expect } from '@playwright/experimental-ct-vue'; import DefaultSlot from '@/components/DefaultSlot.vue'; import NamedSlots from '@/components/NamedSlots.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 }) => { 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 }) => { const slots = { default: 'foo' }; - const component = await mount(HelloWorld, { slots }); + const component = await mount(SlotDefaultValue, { slots }); await expect(component).toHaveText('foo'); await component.update({ slots });