Skip to content

Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.

fix(ct): vue2 slot type (#17073)

sand4rt69b510496737
diff --git a/packages/playwright-ct-vue2/index.d.ts b/packages/playwright-ct-vue2/index.d.ts
index 684e7a1e89..d2cdcfae27 100644
--- a/packages/playwright-ct-vue2/index.d.ts
+++ b/packages/playwright-ct-vue2/index.d.ts
@@ -34,11 +34,13 @@ export type PlaywrightTestConfig = Omit<BasePlaywrightTestConfig, 'use'> & {
}
};
+type Slot = string | string[];
+
export interface MountOptions<Props = Record<string, unknown>> {
- props?: Props,
- slots?: Record<string, unknown>,
- on?: Record<string, Function>,
- hooksConfig?: any,
+ props?: Props;
+ slots?: Record<string, Slot> & { default?: Slot };
+ on?: Record<string, Function>;
+ hooksConfig?: any;
}
interface MountResult<Props = Record<string, unknown>> extends Locator {