Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.
TypeScript automationchromechromiume2e-testingelectronend-to-end-testingfirefoxjavascriptplaywrighttesttest-automationtestingtesting-toolswebwebkit
test(ct): svelte render without options (#17571)
sand4rtd27854f1e733
diff --git a/tests/components/ct-svelte/src/components/Component.svelte b/tests/components/ct-svelte/src/components/Component.sveltenew file mode 100644index 0000000000..179f993315--- /dev/null+++ b/tests/components/ct-svelte/src/components/Component.svelte@@ -0,0 +1 @@+<div>test</div>diff --git a/tests/components/ct-svelte/src/tests.spec.ts b/tests/components/ct-svelte/src/tests.spec.tsindex 915c2dc205..10419b8d98 100644--- a/tests/components/ct-svelte/src/tests.spec.ts+++ b/tests/components/ct-svelte/src/tests.spec.ts@@ -16,6 +16,7 @@import { test, expect } from '@playwright/experimental-ct-svelte';import Button from './components/Button.svelte';+import Component from './components/Component.svelte';import DefaultSlot from './components/DefaultSlot.svelte';import MultiRoot from './components/MultiRoot.svelte';import Empty from './components/Empty.svelte';@@ -54,6 +55,11 @@ test('render a default slot', async ({ mount }) => {await expect(component).toContainText('Main Content')})+test('render a component without options', async ({ mount }) => {+ const component = await mount(Component);+ await expect(component).toContainText('test');+})+test('run hooks', async ({ page, mount }) => {const messages = []page.on('console', m => messages.push(m.text()))