From 100b54f88f3440b114d75dc44fab940ec7cd98b9 Mon Sep 17 00:00:00 2001 From: sand4rt Date: Thu, 17 Aug 2023 22:50:27 +0200 Subject: [PATCH] chore: bump playwright to 1.37.1 --- ct-web-lit/package.json | 2 +- ct-web/package.json | 2 +- playwright-ct-web/index.d.ts | 15 +++++++++++---- playwright-ct-web/package.json | 8 ++++---- pnpm-lock.yaml | 34 +++++++++++++++++----------------- 5 files changed, 34 insertions(+), 27 deletions(-) diff --git a/ct-web-lit/package.json b/ct-web-lit/package.json index 02ed52d..6b37697 100644 --- a/ct-web-lit/package.json +++ b/ct-web-lit/package.json @@ -14,7 +14,7 @@ }, "devDependencies": { "@sand4rt/experimental-ct-web": "workspace:*", - "@playwright/test": "^1.37.0", + "@playwright/test": "^1.37.1", "typescript": "^5.1.3", "vite": "^4.4.7" } diff --git a/ct-web/package.json b/ct-web/package.json index 90926d5..99d429b 100644 --- a/ct-web/package.json +++ b/ct-web/package.json @@ -11,7 +11,7 @@ }, "devDependencies": { "@sand4rt/experimental-ct-web": "workspace:*", - "@playwright/test": "^1.37.0", + "@playwright/test": "^1.37.1", "typescript": "^5.1.3", "vite": "^4.4.7" } diff --git a/playwright-ct-web/index.d.ts b/playwright-ct-web/index.d.ts index fc8463e..50c051f 100644 --- a/playwright-ct-web/index.d.ts +++ b/playwright-ct-web/index.d.ts @@ -45,18 +45,25 @@ type HTMLAttributes = Partial = Partial>; type ComponentProps = HTMLAttributes & CustomProperties; -type Slot = number | string | Slot[]; +type ComponentSlot = number | string | ComponentSlot[]; +type ComponentSlots = Record & { default?: ComponentSlot }; + +type ComponentEvents = Record; export interface MountOptions { props?: ComponentProps; - slots?: Record & { default?: Slot }; - on?: Record; + slots?: ComponentSlots; + on?: ComponentEvents; hooksConfig?: HooksConfig; } interface MountResult extends Locator { unmount(): Promise; - update(options: Omit, 'hooksConfig'>): Promise; + update(options: { + props?: Partial>; + slots?: Partial; + on?: Partial; + }): Promise; } export interface ComponentFixtures { diff --git a/playwright-ct-web/package.json b/playwright-ct-web/package.json index 7a5f9cb..da66393 100644 --- a/playwright-ct-web/package.json +++ b/playwright-ct-web/package.json @@ -1,6 +1,6 @@ { "name": "@sand4rt/experimental-ct-web", - "version": "1.37.0", + "version": "1.37.1", "description": "Playwright Component Testing for Web Components", "homepage": "https://playwright.dev", "repository": { @@ -44,13 +44,13 @@ }, "dependencies": { "vite": "^4.4.7", - "@playwright/experimental-ct-core": "^1.37.0" + "@playwright/experimental-ct-core": "^1.37.1" }, "devDependencies": { - "@playwright/test": "1.37.0" + "@playwright/test": "1.37.1" }, "peerDependencies": { - "@playwright/test": ">=1.37.0" + "@playwright/test": ">=1.37.1" }, "bin": { "playwright": "./cli.js" diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index af33342..0cf9844 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -11,8 +11,8 @@ importers: ct-web: devDependencies: '@playwright/test': - specifier: ^1.37.0 - version: 1.37.0 + specifier: ^1.37.1 + version: 1.37.1 '@sand4rt/experimental-ct-web': specifier: workspace:* version: link:../playwright-ct-web @@ -30,8 +30,8 @@ importers: version: 2.6.1 devDependencies: '@playwright/test': - specifier: ^1.37.0 - version: 1.37.0 + specifier: ^1.37.1 + version: 1.37.1 '@sand4rt/experimental-ct-web': specifier: workspace:* version: link:../playwright-ct-web @@ -45,15 +45,15 @@ importers: playwright-ct-web: dependencies: '@playwright/experimental-ct-core': - specifier: ^1.37.0 - version: 1.37.0 + specifier: ^1.37.1 + version: 1.37.1 vite: specifier: ^4.4.7 version: 4.4.7 devDependencies: '@playwright/test': - specifier: 1.37.0 - version: 1.37.0 + specifier: 1.37.1 + version: 1.37.1 packages: @@ -243,13 +243,13 @@ packages: '@lit-labs/ssr-dom-shim': 1.1.1 dev: false - /@playwright/experimental-ct-core@1.37.0: - resolution: {integrity: sha512-TQP97OxVSqP1ePTa5P9IwbIOjEjgU/4XRrzMyBznNEnGdgX8xUt++nNWfzAsju19kNcOk0GUEoS//MQJqnzI7g==} + /@playwright/experimental-ct-core@1.37.1: + resolution: {integrity: sha512-3OmhDzrIAcVQlyVHmyaVtzcht/OUEH47uvwPh/rQmz/CrvB6zHMxH/7dIo6SCswMbCFkACepbqGmTW4HjW+yeQ==} engines: {node: '>=16'} hasBin: true dependencies: - '@playwright/test': 1.37.0 - playwright-core: 1.37.0 + '@playwright/test': 1.37.1 + playwright-core: 1.37.1 vite: 4.4.7 transitivePeerDependencies: - '@types/node' @@ -261,13 +261,13 @@ packages: - terser dev: false - /@playwright/test@1.37.0: - resolution: {integrity: sha512-181WBLk4SRUyH1Q96VZl7BP6HcK0b7lbdeKisn3N/vnjitk+9HbdlFz/L5fey05vxaAhldIDnzo8KUoy8S3mmQ==} + /@playwright/test@1.37.1: + resolution: {integrity: sha512-bq9zTli3vWJo8S3LwB91U0qDNQDpEXnw7knhxLM0nwDvexQAwx9tO8iKDZSqqneVq+URd/WIoz+BALMqUTgdSg==} engines: {node: '>=16'} hasBin: true dependencies: '@types/node': 20.4.5 - playwright-core: 1.37.0 + playwright-core: 1.37.1 optionalDependencies: fsevents: 2.3.2 @@ -344,8 +344,8 @@ packages: /picocolors@1.0.0: resolution: {integrity: sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ==} - /playwright-core@1.37.0: - resolution: {integrity: sha512-1c46jhTH/myQw6sesrcuHVtLoSNfJv8Pfy9t3rs6subY7kARv0HRw5PpyfPYPpPtQvBOmgbE6K+qgYUpj81LAA==} + /playwright-core@1.37.1: + resolution: {integrity: sha512-17EuQxlSIYCmEMwzMqusJ2ztDgJePjrbttaefgdsiqeLWidjYz9BxXaTaZWxH1J95SHGk6tjE+dwgWILJoUZfA==} engines: {node: '>=16'} hasBin: true