diff --git a/packages/playwright/src/matchers/toMatchSnapshot.ts b/packages/playwright/src/matchers/toMatchSnapshot.ts index 3b315202ca..e9b64e9095 100644 --- a/packages/playwright/src/matchers/toMatchSnapshot.ts +++ b/packages/playwright/src/matchers/toMatchSnapshot.ts @@ -121,7 +121,7 @@ class SnapshotHelper { // // noop // expect.toMatchSnapshot('a.png') - let inputPathSegments: NameOrSegments | undefined; + let inputPathSegments: string[]; if (!name) { const fullTitleWithoutSpec = [ ...testInfo.titlePath.slice(1),