From 0dca66266646ac77a1789900852f629d644049ad Mon Sep 17 00:00:00 2001 From: sand4rt Date: Wed, 17 Jul 2024 16:59:31 +0200 Subject: [PATCH] chore: bump playwright to v1.45.2 --- ct-web-lit/package.json | 2 +- ct-web/package.json | 2 +- playwright-ct-web/hooks.d.ts | 10 +++---- playwright-ct-web/index.d.ts | 19 +++---------- playwright-ct-web/package.json | 8 +++--- playwright-ct-web/register.d.ts | 2 +- pnpm-lock.yaml | 48 ++++++++++++++++----------------- 7 files changed, 39 insertions(+), 52 deletions(-) diff --git a/ct-web-lit/package.json b/ct-web-lit/package.json index 7466e3b..b0c9527 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.45.1", + "@playwright/test": "^1.45.2", "typescript": "^5.1.3", "vite": "^4.4.7" } diff --git a/ct-web/package.json b/ct-web/package.json index c338b34..0e8a10e 100644 --- a/ct-web/package.json +++ b/ct-web/package.json @@ -11,7 +11,7 @@ }, "devDependencies": { "@sand4rt/experimental-ct-web": "workspace:*", - "@playwright/test": "^1.45.1", + "@playwright/test": "^1.45.2", "typescript": "^5.1.3", "vite": "^4.4.7" } diff --git a/playwright-ct-web/hooks.d.ts b/playwright-ct-web/hooks.d.ts index 3cf2465..7650b6d 100644 --- a/playwright-ct-web/hooks.d.ts +++ b/playwright-ct-web/hooks.d.ts @@ -14,11 +14,9 @@ * limitations under the License. */ -import type { JsonObject } from '@playwright/experimental-ct-core/types/component'; - -export declare function beforeMount( - callback: (params: { hooksConfig?: HooksConfig; }) => Promise +export declare function beforeMount( + callback: (params: { hooksConfig?: HooksConfig }) => Promise, ): void; -export declare function afterMount( - callback: (params: { hooksConfig?: HooksConfig; }) => Promise +export declare function afterMount( + callback: (params: { hooksConfig?: HooksConfig }) => Promise, ): void; diff --git a/playwright-ct-web/index.d.ts b/playwright-ct-web/index.d.ts index 748077b..794c9b1 100644 --- a/playwright-ct-web/index.d.ts +++ b/playwright-ct-web/index.d.ts @@ -15,25 +15,15 @@ */ import type { Locator } from '@playwright/test'; -import type { JsonObject, JsonValue, } from '@playwright/experimental-ct-core/types/component'; import type { TestType } from '@playwright/experimental-ct-core'; -type PickByValue = Pick; - -type IfEquals = (() => T extends X ? 1 : 2) extends (() => T extends Y ? 1 : 2) ? A : B; -type WritableKeysOf = {[P in keyof T]: IfEquals<{ [Q in P]: T[P] }, { -readonly [Q in P]: T[P] }, P, never>}[keyof T]; -type WritablePart = Pick>; - -type HTMLAttributes = Partial>>; -type CustomProperties = Partial>; -type ComponentProps = HTMLAttributes & CustomProperties; - +type ComponentProps = Partial; type ComponentSlot = number | string | ComponentSlot[]; type ComponentSlots = Record & { default?: ComponentSlot }; type ComponentEvents = Record; -export interface MountOptions { +export interface MountOptions { props?: ComponentProps; slots?: ComponentSlots; on?: ComponentEvents; @@ -50,11 +40,10 @@ export interface MountResult extends Locator { } export const test: TestType<{ - mount( + mount( component: new (...args: any[]) => Component, options?: MountOptions ): Promise>; }>; -export { defineConfig, PlaywrightTestConfig } from '@playwright/experimental-ct-core'; -export { expect, devices } from '@playwright/test'; +export { defineConfig, PlaywrightTestConfig, expect, devices } from '@playwright/experimental-ct-core'; diff --git a/playwright-ct-web/package.json b/playwright-ct-web/package.json index 52a7303..7ed01d4 100644 --- a/playwright-ct-web/package.json +++ b/playwright-ct-web/package.json @@ -1,6 +1,6 @@ { "name": "@sand4rt/experimental-ct-web", - "version": "1.45.1", + "version": "1.45.2", "description": "Playwright Component Testing for Web Components", "homepage": "https://playwright.dev", "repository": { @@ -44,13 +44,13 @@ "./package.json": "./package.json" }, "dependencies": { - "@playwright/experimental-ct-core": "1.45.1" + "@playwright/experimental-ct-core": "1.45.2" }, "devDependencies": { - "@playwright/test": "1.45.1" + "@playwright/test": "1.45.2" }, "peerDependencies": { - "@playwright/test": ">=1.45.1" + "@playwright/test": ">=1.45.2" }, "bin": { "playwright": "cli.js" diff --git a/playwright-ct-web/register.d.ts b/playwright-ct-web/register.d.ts index 9ca8259..1f44530 100644 --- a/playwright-ct-web/register.d.ts +++ b/playwright-ct-web/register.d.ts @@ -14,4 +14,4 @@ * limitations under the License. */ -export default function pwRegister(components: Record): void +export default function pwRegister(components: Record): void; diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 0de27e6..8ef6cad 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -11,8 +11,8 @@ importers: ct-web: devDependencies: '@playwright/test': - specifier: ^1.45.1 - version: 1.45.1 + specifier: ^1.45.2 + version: 1.45.2 '@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.45.1 - version: 1.45.1 + specifier: ^1.45.2 + version: 1.45.2 '@sand4rt/experimental-ct-web': specifier: workspace:* version: link:../playwright-ct-web @@ -45,12 +45,12 @@ importers: playwright-ct-web: dependencies: '@playwright/experimental-ct-core': - specifier: 1.45.1 - version: 1.45.1 + specifier: 1.45.2 + version: 1.45.2 devDependencies: '@playwright/test': - specifier: 1.45.1 - version: 1.45.1 + specifier: 1.45.2 + version: 1.45.2 packages: @@ -330,12 +330,12 @@ packages: '@lit/reactive-element@1.6.2': resolution: {integrity: sha512-rDfl+QnCYjuIGf5xI2sVJWdYIi56CTCwWa+nidKYX6oIuBYwUbT/vX4qbUDlHiZKJ/3FRNQ/tWJui44p6/stSA==} - '@playwright/experimental-ct-core@1.45.1': - resolution: {integrity: sha512-/QuzNWJaKTVpa6hkZgjrtNyNawUWXdZ6+iafUEy0hs8Kq9bVEfXlTetIjUHWmF/sCW6MEF+pcTWyHj51rQMatw==} + '@playwright/experimental-ct-core@1.45.2': + resolution: {integrity: sha512-WDRaEqDZHmvmj5gTwi9c0S9iY0N0sMSZHdiRROuVxKDq5HgWVwu2Xs3eDtNrklW4PiQ84li+ciwVyVSovhYeZg==} engines: {node: '>=18'} - '@playwright/test@1.45.1': - resolution: {integrity: sha512-Wo1bWTzQvGA7LyKGIZc8nFSTFf2TkthGIFBR+QVNilvwouGzFd4PYukZe3rvf5PSqjHi1+1NyKSDZKcQWETzaA==} + '@playwright/test@1.45.2': + resolution: {integrity: sha512-JxG9eq92ET75EbVi3s+4sYbcG7q72ECeZNbdBlaMkGcNbiDQ4cAi8U2QP5oKkOx+1gpaiL1LDStmzCaEM1Z6fQ==} engines: {node: '>=18'} hasBin: true @@ -467,13 +467,13 @@ packages: picocolors@1.0.0: resolution: {integrity: sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ==} - playwright-core@1.45.1: - resolution: {integrity: sha512-LF4CUUtrUu2TCpDw4mcrAIuYrEjVDfT1cHbJMfwnE2+1b8PZcFzPNgvZCvq2JfQ4aTjRCCHw5EJ2tmr2NSzdPg==} + playwright-core@1.45.2: + resolution: {integrity: sha512-ha175tAWb0dTK0X4orvBIqi3jGEt701SMxMhyujxNrgd8K0Uy5wMSwwcQHtyB4om7INUkfndx02XnQ2p6dvLDw==} engines: {node: '>=18'} hasBin: true - playwright@1.45.1: - resolution: {integrity: sha512-Hjrgae4kpSQBr98nhCj3IScxVeVUixqj+5oyif8TdIn2opTCPEzqAqNMeK42i3cWDCVu9MI+ZsGWw+gVR4ISBg==} + playwright@1.45.2: + resolution: {integrity: sha512-ReywF2t/0teRvNBpfIgh5e4wnrI/8Su8ssdo5XsQKpjxJj+jspm00jSoz9BTg91TT0c9HRjXO7LBNVrgYj9X0g==} engines: {node: '>=18'} hasBin: true @@ -707,10 +707,10 @@ snapshots: dependencies: '@lit-labs/ssr-dom-shim': 1.1.1 - '@playwright/experimental-ct-core@1.45.1': + '@playwright/experimental-ct-core@1.45.2': dependencies: - playwright: 1.45.1 - playwright-core: 1.45.1 + playwright: 1.45.2 + playwright-core: 1.45.2 vite: 5.2.11 transitivePeerDependencies: - '@types/node' @@ -721,9 +721,9 @@ snapshots: - sugarss - terser - '@playwright/test@1.45.1': + '@playwright/test@1.45.2': dependencies: - playwright: 1.45.1 + playwright: 1.45.2 '@rollup/rollup-android-arm-eabi@4.17.2': optional: true @@ -856,11 +856,11 @@ snapshots: picocolors@1.0.0: {} - playwright-core@1.45.1: {} + playwright-core@1.45.2: {} - playwright@1.45.1: + playwright@1.45.2: dependencies: - playwright-core: 1.45.1 + playwright-core: 1.45.2 optionalDependencies: fsevents: 2.3.2