feat(ct): export component fixture types to enable re-export (#15583)
This commit is contained in:
parent
428cdc073c
commit
56fb3ddefb
2
packages/playwright-ct-react/index.d.ts
vendored
2
packages/playwright-ct-react/index.d.ts
vendored
|
|
@ -34,7 +34,7 @@ export type PlaywrightTestConfig = Omit<BasePlaywrightTestConfig, 'use'> & {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
interface ComponentFixtures {
|
export interface ComponentFixtures {
|
||||||
mount(component: JSX.Element, options?: { hooksConfig?: any }): Promise<Locator>;
|
mount(component: JSX.Element, options?: { hooksConfig?: any }): Promise<Locator>;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
2
packages/playwright-ct-svelte/index.d.ts
vendored
2
packages/playwright-ct-svelte/index.d.ts
vendored
|
|
@ -34,7 +34,7 @@ export type PlaywrightTestConfig = Omit<BasePlaywrightTestConfig, 'use'> & {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
interface ComponentFixtures {
|
export interface ComponentFixtures {
|
||||||
mount<Props = { [key: string]: any }>(component: any, options?: {
|
mount<Props = { [key: string]: any }>(component: any, options?: {
|
||||||
props?: Props,
|
props?: Props,
|
||||||
slots?: { [key: string]: any },
|
slots?: { [key: string]: any },
|
||||||
|
|
|
||||||
2
packages/playwright-ct-vue/index.d.ts
vendored
2
packages/playwright-ct-vue/index.d.ts
vendored
|
|
@ -34,7 +34,7 @@ export type PlaywrightTestConfig = Omit<BasePlaywrightTestConfig, 'use'> & {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
interface ComponentFixtures {
|
export interface ComponentFixtures {
|
||||||
mount(component: JSX.Element): Promise<Locator>;
|
mount(component: JSX.Element): Promise<Locator>;
|
||||||
mount<Props = { [key: string]: any }>(component: any, options?: {
|
mount<Props = { [key: string]: any }>(component: any, options?: {
|
||||||
props?: Props,
|
props?: Props,
|
||||||
|
|
|
||||||
2
packages/playwright-ct-vue2/index.d.ts
vendored
2
packages/playwright-ct-vue2/index.d.ts
vendored
|
|
@ -34,7 +34,7 @@ export type PlaywrightTestConfig = Omit<BasePlaywrightTestConfig, 'use'> & {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
interface ComponentFixtures {
|
export interface ComponentFixtures {
|
||||||
mount(component: JSX.Element): Promise<Locator>;
|
mount(component: JSX.Element): Promise<Locator>;
|
||||||
mount<Props = { [key: string]: any }>(component: any, options?: {
|
mount<Props = { [key: string]: any }>(component: any, options?: {
|
||||||
props?: Props,
|
props?: Props,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue