Playwright/E2E: Upgrade to playwright@1.43 and its dependencies (#26833)

* chore: upgrade to playwright@1.43 and its dependencies

* fix lint

* attempt to fix lint error on console
Этот коммит содержится в:
Saturnino Abril
2024-04-23 06:58:49 +08:00
коммит произвёл GitHub
родитель 22d72b6df8
Коммит 20825101a4
18 изменённых файлов: 410 добавлений и 405 удалений

Просмотреть файл

@@ -8,16 +8,14 @@ import {TestArgs} from '@e2e-types';
export default async function snapshotWithPercy(name: string, testArgs: TestArgs) {
if (testArgs.browserName === 'chromium' && testConfig.percyEnabled && testArgs.viewport) {
if (!testConfig.percyToken) {
// eslint-disable-next-line no-console
console.error('Error: Token is missing! Please set using: "export PERCY_TOKEN=<change_me>"');
}
const {page, viewport} = testArgs;
// Ignore since percy is using Playwright.Page
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore
await percySnapshot(page, name, {widths: [viewport.width], minHeight: viewport.height});
try {
await percySnapshot(page, name, {widths: [viewport.width], minHeight: viewport.height});
} catch (error) {
// log an error for debugging
// eslint-disable-next-line no-console
console.log(`${error}\nIn addition, check if token is properly set by "export PERCY_TOKEN=<change_me>"`);
}
}
}