Playwright/E2E: Upgraded Playwright to 1.41 and fixed tests (#26008)
* upgrade Playwright and fix tests * fix lint
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
797fe9b917
Коммит
79e961e239
@@ -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');
|
||||
}
|
||||
|
||||
Ссылка в новой задаче
Block a user