From 601afa7005f9465f8ad59cf8651731335aa9f90c Mon Sep 17 00:00:00 2001 From: itwillwork Date: Fri, 16 Aug 2024 15:40:02 +0300 Subject: [PATCH] test: fix CI --- .github/workflows/pr-visual-tests.yml | 2 +- playwright/core/mountFixture.tsx | 8 +------- playwright/core/types.ts | 3 +-- 3 files changed, 3 insertions(+), 10 deletions(-) diff --git a/.github/workflows/pr-visual-tests.yml b/.github/workflows/pr-visual-tests.yml index 8c46ec5a54..a67a7c0272 100644 --- a/.github/workflows/pr-visual-tests.yml +++ b/.github/workflows/pr-visual-tests.yml @@ -8,7 +8,7 @@ jobs: name: Visual Tests runs-on: ubuntu-latest container: - image: mcr.microsoft.com/playwright:v1.42.1-jammy + image: mcr.microsoft.com/playwright:v1.46.0-jammy steps: - uses: actions/checkout@v4 - uses: actions/setup-node@v4 diff --git a/playwright/core/mountFixture.tsx b/playwright/core/mountFixture.tsx index 0c285050cf..28b4db4d44 100644 --- a/playwright/core/mountFixture.tsx +++ b/playwright/core/mountFixture.tsx @@ -1,15 +1,9 @@ import React from 'react'; -import type {JsonObject} from '@playwright/experimental-ct-core/types/component'; -import type {MountOptions} from '@playwright/experimental-ct-react'; - import type {MountFixture, PlaywrightFixture} from './types'; export const mountFixture: PlaywrightFixture = async ({mount: baseMount}, use) => { - const mount = async ( - component: JSX.Element, - options?: MountOptions | undefined, - ) => { + const mount: MountFixture = async (component, options) => { return await baseMount(
( + mount( component: JSX.Element, options?: MountOptions, ): Promise;