import type { PlaywrightTestConfig } from '@playwright/test'; import type { CustomPackPropertiesPlaceholder, CustomReportPropertiesPlaceholder, SkipTestsPlaceholder, TestMetaPlaceholder } from '../userland'; import type { WithDoBeforePack } from './doBeforePack'; import type { OwnE2edConfig } from './ownE2edConfig'; /** * Supported browsers. */ export type BrowserName = 'chromium' | 'firefox' | 'webkit'; /** * The complete pack configuration object without `doBeforePack` field. */ export type FullPackConfigWithoutDoBeforePack = (unknown extends CustomPackProperties ? UserlandPackWithoutDoBeforePack : UserlandPackWithoutDoBeforePack) & PlaywrightTestConfig; /** * The complete userland pack config. */ export type UserlandPack = UserlandPackWithoutDoBeforePack & WithDoBeforePack; /** * The complete userland pack config without `doBeforePack` field. */ export type UserlandPackWithoutDoBeforePack = Readonly<{ assertionTimeout: number; concurrency: number; port1: number; port2: number; selectorTimeout: number; }> & OwnE2edConfig;