diff --git a/packages/element-web-playwright-common/package.json b/packages/element-web-playwright-common/package.json index 5acdbdd3bf..5157e2a52e 100644 --- a/packages/element-web-playwright-common/package.json +++ b/packages/element-web-playwright-common/package.json @@ -21,6 +21,7 @@ "yaml": "^2.7.0" }, "peerDependencies": { + "@element-hq/element-web-module-api": "*", "@playwright/test": "^1.51.0", "playwright-core": "^1.51.0" }, diff --git a/packages/element-web-playwright-common/src/expect/screenshot.ts b/packages/element-web-playwright-common/src/expect/screenshot.ts index a194b52671..37726fd958 100644 --- a/packages/element-web-playwright-common/src/expect/screenshot.ts +++ b/packages/element-web-playwright-common/src/expect/screenshot.ts @@ -14,8 +14,8 @@ import { type Locator, type Page, type PageAssertionsToHaveScreenshotOptions, + type MatcherReturnType, } from "@playwright/test"; -import { type MatcherReturnType } from "playwright/types/test"; import { sanitizeForFilePath } from "playwright-core/lib/utils"; import { extname } from "node:path";