feat(ct): typesafe mount props (#15445)
This commit is contained in:
parent
bc4463c472
commit
a41a25e07b
4
packages/playwright-ct-svelte/index.d.ts
vendored
4
packages/playwright-ct-svelte/index.d.ts
vendored
|
|
@ -35,8 +35,8 @@ export type PlaywrightTestConfig = Omit<BasePlaywrightTestConfig, 'use'> & {
|
||||||
};
|
};
|
||||||
|
|
||||||
interface ComponentFixtures {
|
interface ComponentFixtures {
|
||||||
mount(component: any, options?: {
|
mount<Props = { [key: string]: any }>(component: any, options?: {
|
||||||
props?: { [key: string]: any },
|
props?: Props,
|
||||||
slots?: { [key: string]: any },
|
slots?: { [key: string]: any },
|
||||||
on?: { [key: string]: Function },
|
on?: { [key: string]: Function },
|
||||||
}): Promise<Locator>;
|
}): Promise<Locator>;
|
||||||
|
|
|
||||||
4
packages/playwright-ct-vue/index.d.ts
vendored
4
packages/playwright-ct-vue/index.d.ts
vendored
|
|
@ -36,8 +36,8 @@ export type PlaywrightTestConfig = Omit<BasePlaywrightTestConfig, 'use'> & {
|
||||||
|
|
||||||
interface ComponentFixtures {
|
interface ComponentFixtures {
|
||||||
mount(component: JSX.Element): Promise<Locator>;
|
mount(component: JSX.Element): Promise<Locator>;
|
||||||
mount(component: any, options?: {
|
mount<Props = { [key: string]: any }>(component: any, options?: {
|
||||||
props?: { [key: string]: any },
|
props?: Props,
|
||||||
slots?: { [key: string]: any },
|
slots?: { [key: string]: any },
|
||||||
on?: { [key: string]: Function },
|
on?: { [key: string]: Function },
|
||||||
}): Promise<Locator>;
|
}): Promise<Locator>;
|
||||||
|
|
|
||||||
4
packages/playwright-ct-vue2/index.d.ts
vendored
4
packages/playwright-ct-vue2/index.d.ts
vendored
|
|
@ -36,8 +36,8 @@ export type PlaywrightTestConfig = Omit<BasePlaywrightTestConfig, 'use'> & {
|
||||||
|
|
||||||
interface ComponentFixtures {
|
interface ComponentFixtures {
|
||||||
mount(component: JSX.Element): Promise<Locator>;
|
mount(component: JSX.Element): Promise<Locator>;
|
||||||
mount(component: any, options?: {
|
mount<Props = { [key: string]: any }>(component: any, options?: {
|
||||||
props?: { [key: string]: any },
|
props?: Props,
|
||||||
slots?: { [key: string]: any },
|
slots?: { [key: string]: any },
|
||||||
on?: { [key: string]: Function },
|
on?: { [key: string]: Function },
|
||||||
}): Promise<Locator>;
|
}): Promise<Locator>;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue