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
feat(ct): typesafe mount props (#15445)
sand4rta41a25e07b1a
diff --git a/packages/playwright-ct-svelte/index.d.ts b/packages/playwright-ct-svelte/index.d.tsindex 0bec91cbc4..fe227236b2 100644--- a/packages/playwright-ct-svelte/index.d.ts+++ b/packages/playwright-ct-svelte/index.d.ts@@ -35,8 +35,8 @@ export type PlaywrightTestConfig = Omit<BasePlaywrightTestConfig, 'use'> & {};interface ComponentFixtures {- mount(component: any, options?: {- props?: { [key: string]: any },+ mount<Props = { [key: string]: any }>(component: any, options?: {+ props?: Props,slots?: { [key: string]: any },on?: { [key: string]: Function },}): Promise<Locator>;diff --git a/packages/playwright-ct-vue/index.d.ts b/packages/playwright-ct-vue/index.d.tsindex ab27df0153..4a56ae3fea 100644--- a/packages/playwright-ct-vue/index.d.ts+++ b/packages/playwright-ct-vue/index.d.ts@@ -36,8 +36,8 @@ export type PlaywrightTestConfig = Omit<BasePlaywrightTestConfig, 'use'> & {interface ComponentFixtures {mount(component: JSX.Element): Promise<Locator>;- mount(component: any, options?: {- props?: { [key: string]: any },+ mount<Props = { [key: string]: any }>(component: any, options?: {+ props?: Props,slots?: { [key: string]: any },on?: { [key: string]: Function },}): Promise<Locator>;diff --git a/packages/playwright-ct-vue2/index.d.ts b/packages/playwright-ct-vue2/index.d.tsindex ab27df0153..4a56ae3fea 100644--- a/packages/playwright-ct-vue2/index.d.ts+++ b/packages/playwright-ct-vue2/index.d.ts@@ -36,8 +36,8 @@ export type PlaywrightTestConfig = Omit<BasePlaywrightTestConfig, 'use'> & {interface ComponentFixtures {mount(component: JSX.Element): Promise<Locator>;- mount(component: any, options?: {- props?: { [key: string]: any },+ mount<Props = { [key: string]: any }>(component: any, options?: {+ props?: Props,slots?: { [key: string]: any },on?: { [key: string]: Function },}): Promise<Locator>;