Playwright/E2E: Upgraded Playwright to 1.41 and fixed tests (#26008)

* upgrade Playwright and fix tests

* fix lint
Этот коммит содержится в:
Saturnino Abril
2024-01-23 20:56:23 +08:00
коммит произвёл GitHub
родитель 797fe9b917
Коммит 79e961e239
10 изменённых файлов: 562 добавлений и 455 удалений

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

@@ -5,6 +5,7 @@ import os from 'node:os';
import {expect} from '@playwright/test';
import {test} from './test_fixture';
import {callsPluginId} from './constant';
import {getAdminClient} from './server/init';
@@ -33,3 +34,10 @@ export async function shouldRunInLinux() {
const platform = os.platform();
await expect(platform, 'Run in Linux or Playwright docker image only').toBe('linux');
}
export async function skipIfNoLicense() {
const {adminClient} = await getAdminClient();
const license = await adminClient.getClientLicenseOld();
test.skip(license.IsLicensed === 'false', 'Skipping test - server not licensed');
}