Fixed linting issues in Playwright config (#7662)
This commit is contained in:
parent
5560f9def7
commit
1625f462c2
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user