From fb3dd0cf8f0702a07c2867a6e66cf91b3e066c93 Mon Sep 17 00:00:00 2001 From: Younes Jaaidi Date: Fri, 23 Feb 2024 18:01:59 +0100 Subject: [PATCH] refactor(ct-angular): clean up slots remains --- packages/playwright-ct-angular/index.d.ts | 4 ---- packages/playwright-ct-angular/registerSource.mjs | 3 --- 2 files changed, 7 deletions(-) diff --git a/packages/playwright-ct-angular/index.d.ts b/packages/playwright-ct-angular/index.d.ts index 29a43c4c77..e13a856ce4 100644 --- a/packages/playwright-ct-angular/index.d.ts +++ b/packages/playwright-ct-angular/index.d.ts @@ -36,15 +36,11 @@ export type PlaywrightTestConfig = Omit & { default?: ComponentSlot }; - type ComponentEvents = Record; export interface MountOptions { props?: Partial | Record, // TODO: filter props and handle signals providers?: Provider[], - slots?: ComponentSlots; on?: ComponentEvents; hooksConfig?: HooksConfig; } diff --git a/packages/playwright-ct-angular/registerSource.mjs b/packages/playwright-ct-angular/registerSource.mjs index b9801b6c61..534cc84488 100644 --- a/packages/playwright-ct-angular/registerSource.mjs +++ b/packages/playwright-ct-angular/registerSource.mjs @@ -68,9 +68,6 @@ window.playwrightUnmount = async rootElement => { * @param {{type: import('@angular/core').Type} & import('./index').MountOptions | {type: string} & import('./index').MountTemplateOptions} component */ window.playwrightUpdate = async (rootElement, component) => { - if (component.slots) - throw new Error('Update slots is not supported yet'); - const fixture = __pwFixtureRegistry.get(rootElement.id); if (!fixture) throw new Error('Component was not mounted');