/
githubmirror
/
gutenberg
Обзор
Документация
Войти
/
githubmirror
/
gutenberg
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
trunk
test/performance/playwright.config.ts
36 строк
1 KB
Marco Ciampini
ESLint: Replace strict config with bulk suppressions (#81248)
07 авг 2026, 14:34
Не верифицирован
07 авг 2026, 14:34
7f43eaf
Код
Авторство
О чём код?
import path from 'path'; import { fileURLToPath } from 'url'; import { defineConfig } from '@playwright/test'; import baseConfig from '@wordpress/scripts/config/playwright.config.js'; process.env.ASSETS_PATH = path.join( __dirname, 'assets' ); const config = defineConfig( { ...baseConfig, webServer: { ...baseConfig.webServer, command: 'npm run --prefix ../.. wp-env -- start', }, reporter: [ [ 'list' ], [ './config/performance-reporter.ts' ] ], forbidOnly: !! process.env.CI, fullyParallel: false, retries: 0, timeout: parseInt( process.env.TIMEOUT || '', 10 ) || 600_000, // Defaults to 10 minutes. reportSlowTests: null, globalSetup: fileURLToPath( new URL( './config/global-setup.ts', 'file:' + __filename ).href ), use: { ...baseConfig.use, actionTimeout: 120_000, // 2 minutes. video: 'off', // Playwright's own tracing injects a DOM snapshot recorder into // every page (captureSnapshot/visitNode/_getSheetText), which runs // on the main thread on each action and shows up as ~750ms of // extra work in our captured Chromium traces. We don't need // Playwright's trace artifacts for perf measurements. trace: 'off', }, } ); export default config;