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): mount generic type required when specified (#15591)
sand4rt82fb68fdde9a
diff --git a/packages/playwright-ct-svelte/index.d.ts b/packages/playwright-ct-svelte/index.d.tsindex 34251168ed..83ddbe129c 100644--- a/packages/playwright-ct-svelte/index.d.ts+++ b/packages/playwright-ct-svelte/index.d.ts@@ -34,9 +34,15 @@ export type PlaywrightTestConfig = Omit<BasePlaywrightTestConfig, 'use'> & {}};-export interface ComponentFixtures {- mount<Props = { [key: string]: any }>(component: any, options?: {- props?: Props,+interface ComponentFixtures {+ mount(component: any, options?: {+ props?: { [key: string]: any },+ slots?: { [key: string]: any },+ on?: { [key: string]: Function },+ hooksConfig: any,+ }): Promise<Locator>;+ mount<Props>(component: any, options: {+ props: Props,slots?: { [key: string]: any },on?: { [key: string]: Function },hooksConfig: any,diff --git a/packages/playwright-ct-vue/index.d.ts b/packages/playwright-ct-vue/index.d.tsindex 0ba8a57f72..f5f4d4906d 100644--- a/packages/playwright-ct-vue/index.d.ts+++ b/packages/playwright-ct-vue/index.d.ts@@ -36,8 +36,14 @@ export type PlaywrightTestConfig = Omit<BasePlaywrightTestConfig, 'use'> & {export interface ComponentFixtures {mount(component: JSX.Element): Promise<Locator>;- mount<Props = { [key: string]: any }>(component: any, options?: {- props?: Props,+ mount(component: any, options?: {+ props?: { [key: string]: any },+ slots?: { [key: string]: any },+ on?: { [key: string]: Function },+ hooksConfig?: any,+ }): Promise<Locator>;+ mount<Props>(component: any, options: {+ props: Props,slots?: { [key: string]: any },on?: { [key: string]: Function },hooksConfig?: any,diff --git a/packages/playwright-ct-vue2/index.d.ts b/packages/playwright-ct-vue2/index.d.tsindex 4e27f16d39..9e78cb0d99 100644--- a/packages/playwright-ct-vue2/index.d.ts+++ b/packages/playwright-ct-vue2/index.d.ts@@ -36,8 +36,14 @@ export type PlaywrightTestConfig = Omit<BasePlaywrightTestConfig, 'use'> & {export interface ComponentFixtures {mount(component: JSX.Element): Promise<Locator>;- mount<Props = { [key: string]: any }>(component: any, options?: {- props?: Props,+ mount(component: any, options?: {+ props?: { [key: string]: any },+ slots?: { [key: string]: any },+ on?: { [key: string]: Function },+ hooksConfig: any,+ }): Promise<Locator>;+ mount<Props>(component: any, options: {+ props: Props,slots?: { [key: string]: any },on?: { [key: string]: Function },hooksConfig: any,