Fixed linting issues in Playwright config (#7662)

This commit is contained in:
Keith Williams 2023-03-12 04:39:08 -04:00 committed by GitHub
parent 5560f9def7
commit 1625f462c2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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<R> {
toBeEmbedCalLink(
calNamespace: string,
getActionFiredDetails: Function,
// eslint-disable-next-line
getActionFiredDetails: (a: { calNamespace: string; actionType: string }) => Promise<any>,
expectedUrlDetails?: ExpectedUrlDetails
): Promise<R>;
}
@ -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<any>,
expectedUrlDetails: ExpectedUrlDetails = {}
) {
if (!iframe || !iframe.url) {