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');