Eslint: Ensure playwright files are checked by eslint
This commit is contained in:
@@ -13,8 +13,8 @@
|
|||||||
"prettier:check": "prettier -c .",
|
"prettier:check": "prettier -c .",
|
||||||
"prettier:format": "prettier -w .",
|
"prettier:format": "prettier -w .",
|
||||||
"lint": "yarn lint:types && yarn lint:eslint && yarn lint:knip",
|
"lint": "yarn lint:types && yarn lint:eslint && yarn lint:knip",
|
||||||
"lint:eslint": "eslint --max-warnings 0 src",
|
"lint:eslint": "eslint --max-warnings 0 src playwright",
|
||||||
"lint:eslint-fix": "eslint --max-warnings 0 src --fix",
|
"lint:eslint-fix": "eslint --max-warnings 0 src playwright --fix",
|
||||||
"lint:knip": "knip",
|
"lint:knip": "knip",
|
||||||
"lint:types": "tsc",
|
"lint:types": "tsc",
|
||||||
"i18n": "i18next",
|
"i18n": "i18next",
|
||||||
|
|||||||
@@ -91,7 +91,7 @@ test("As a guest, create a call, share link and other join", async ({
|
|||||||
await expect(creatorPage.getByTestId("modal_inviteLink")).toBeVisible();
|
await expect(creatorPage.getByTestId("modal_inviteLink")).toBeVisible();
|
||||||
await creatorPage.getByTestId("modal_inviteLink").click();
|
await creatorPage.getByTestId("modal_inviteLink").click();
|
||||||
|
|
||||||
let inviteLink = (await creatorPage.evaluate(
|
const inviteLink = (await creatorPage.evaluate(
|
||||||
"navigator.clipboard.readText()",
|
"navigator.clipboard.readText()",
|
||||||
)) as string;
|
)) as string;
|
||||||
expect(inviteLink).toContain("room/#/");
|
expect(inviteLink).toContain("room/#/");
|
||||||
|
|||||||
@@ -50,6 +50,7 @@
|
|||||||
"include": [
|
"include": [
|
||||||
"./node_modules/matrix-js-sdk/src/@types/*.d.ts",
|
"./node_modules/matrix-js-sdk/src/@types/*.d.ts",
|
||||||
"./src/**/*.ts",
|
"./src/**/*.ts",
|
||||||
"./src/**/*.tsx"
|
"./src/**/*.tsx",
|
||||||
|
"./playwright/**/*.ts"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user