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): svelte slot type (#17074)

sand4rt3f941865a0d2
diff --git a/packages/playwright-ct-svelte/index.d.ts b/packages/playwright-ct-svelte/index.d.ts
index 868251730a..69255d0b7f 100644
--- a/packages/playwright-ct-svelte/index.d.ts
+++ b/packages/playwright-ct-svelte/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 extends Locator {