From dff53e79d2a8a728c17ca7c0e6f4aa371c4561b6 Mon Sep 17 00:00:00 2001 From: Sander Date: Thu, 17 Aug 2023 23:15:24 +0200 Subject: [PATCH] chore: bump playwright to 1.37.1 (#16) --- ct-angular/package.json | 2 +- playwright-ct-angular/index.d.ts | 14 ++++++++++---- playwright-ct-angular/package.json | 8 ++++---- 3 files changed, 15 insertions(+), 9 deletions(-) diff --git a/ct-angular/package.json b/ct-angular/package.json index d5b075362e5db..b69b14e6f487c 100644 --- a/ct-angular/package.json +++ b/ct-angular/package.json @@ -26,7 +26,7 @@ "@angular-devkit/build-angular": "^15.1.0", "@angular/cli": "~15.1.0", "@angular/compiler-cli": "^15.1.0", - "@playwright/test": "1.37.0", + "@playwright/test": "1.37.1", "@sand4rt/experimental-ct-angular": "workspace:*", "typescript": "~4.9.4" } diff --git a/playwright-ct-angular/index.d.ts b/playwright-ct-angular/index.d.ts index 9c43a1b2f8619..54a5822bd0efb 100644 --- a/playwright-ct-angular/index.d.ts +++ b/playwright-ct-angular/index.d.ts @@ -36,18 +36,24 @@ export type PlaywrightTestConfig = Omit & { default?: ComponentSlot }; + +type ComponentEvents = Record; export interface MountOptions { props?: Partial, // TODO: filter props - slots?: Record & { default?: Slot }; - on?: Record; + slots?: ComponentSlots; + on?: ComponentEvents; hooksConfig?: HooksConfig; } interface MountResult extends Locator { unmount(): Promise; - update(options: Omit, 'hooksConfig'>, 'slots'>): Promise; + update(options: { + props?: Partial, + on?: Partial, + }): Promise; } export interface ComponentFixtures { diff --git a/playwright-ct-angular/package.json b/playwright-ct-angular/package.json index a090cc986851b..6c8db5f7b1242 100644 --- a/playwright-ct-angular/package.json +++ b/playwright-ct-angular/package.json @@ -1,6 +1,6 @@ { "name": "@sand4rt/experimental-ct-angular", - "version": "1.37.0", + "version": "1.37.1", "description": "Playwright Component Testing for Angular", "homepage": "https://playwright.dev", "repository": { @@ -42,7 +42,7 @@ "dependencies": { "@analogjs/vite-plugin-angular": "0.2.0-rc.3", "@angular-devkit/build-angular": "^16.1.0", - "@playwright/experimental-ct-core": "1.37.0", + "@playwright/experimental-ct-core": "1.37.1", "vite": "^4.4.7" }, "devDependencies": { @@ -54,14 +54,14 @@ "@angular/platform-browser": "^16.1.7", "@angular/platform-browser-dynamic": "^16.1.7", "@angular/router": "^16.1.7", - "@playwright/test": "1.37.0", + "@playwright/test": "1.37.1", "rxjs": "~7.8.1", "tslib": "^2.5.0", "typescript": "^5.0.4", "zone.js": "~0.13.1" }, "peerDependencies": { - "@playwright/test": ">=1.37.0", + "@playwright/test": ">=1.37.1", "typescript": ">=4.9.3", "@angular/common": ">=15.1.0 || >=16.0.0", "@angular/platform-browser": ">=15.1.0 || >=16.0.0",