Skip to content

Commit

Permalink
test: fix CI
Browse files Browse the repository at this point in the history
  • Loading branch information
itwillwork committed Aug 16, 2024
1 parent ff7149a commit 601afa7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/pr-visual-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 1 addition & 7 deletions playwright/core/mountFixture.tsx
Original file line number Diff line number Diff line change
@@ -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<MountFixture> = async ({mount: baseMount}, use) => {
const mount = async (
component: JSX.Element,
options?: MountOptions<JsonObject> | undefined,
) => {
const mount: MountFixture = async (component, options) => {
return await baseMount(
<div
style={{padding: 20, width: 'fit-content', height: 'fit-content'}}
Expand Down
3 changes: 1 addition & 2 deletions playwright/core/types.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import type {JsonObject} from '@playwright/experimental-ct-core/types/component';
import type {MountOptions, MountResult} from '@playwright/experimental-ct-react';
import type {
Locator,
Expand All @@ -11,7 +10,7 @@ import type {
} from '@playwright/test';

interface ComponentFixtures {
mount<HooksConfig extends JsonObject>(
mount<HooksConfig>(
component: JSX.Element,
options?: MountOptions<HooksConfig>,
): Promise<MountResult>;
Expand Down

0 comments on commit 601afa7

Please sign in to comment.