diff --git a/packages/embeds/embed-core/playwright/config/playwright.config.ts b/packages/embeds/embed-core/playwright/config/playwright.config.ts index 29f7fcb90d..e298aac3c3 100644 --- a/packages/embeds/embed-core/playwright/config/playwright.config.ts +++ b/packages/embeds/embed-core/playwright/config/playwright.config.ts @@ -2,6 +2,7 @@ import type { PlaywrightTestConfig, Frame } from "@playwright/test"; import { devices, expect } from "@playwright/test"; import * as path from "path"; +// eslint-disable-next-line @typescript-eslint/no-var-requires require("dotenv").config({ path: "../../../../../.env" }); const outputDir = path.join("../results"); @@ -79,7 +80,8 @@ declare global { interface Matchers { toBeEmbedCalLink( calNamespace: string, - getActionFiredDetails: Function, + // eslint-disable-next-line + getActionFiredDetails: (a: { calNamespace: string; actionType: string }) => Promise, expectedUrlDetails?: ExpectedUrlDetails ): Promise; } @@ -91,7 +93,8 @@ expect.extend({ iframe: Frame, calNamespace: string, //TODO: Move it to testUtil, so that it doesn't need to be passed - getActionFiredDetails: Function, + // eslint-disable-next-line + getActionFiredDetails: (a: { calNamespace: string; actionType: string }) => Promise, expectedUrlDetails: ExpectedUrlDetails = {} ) { if (!iframe || !iframe.url) {