Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.
TypeScript automationchromechromiume2e-testingelectronend-to-end-testingfirefoxjavascriptplaywrighttesttest-automationtestingtesting-toolswebwebkit
types: allow readonly tuples to be used as `ReporterDescription` (#30387)
Mateusz Burzyński82aefd24db1b
diff --git a/packages/playwright/types/test.d.ts b/packages/playwright/types/test.d.tsindex fe74d00184..42d85d45fc 100644--- a/packages/playwright/types/test.d.ts+++ b/packages/playwright/types/test.d.ts@@ -18,7 +18,7 @@import type { APIRequestContext, Browser, BrowserContext, BrowserContextOptions, Page, LaunchOptions, ViewportSize, Geolocation, HTTPCredentials, Locator, APIResponse, PageScreenshotOptions } from 'playwright-core';export * from 'playwright-core';-export type ReporterDescription =+export type ReporterDescription = Readonly<['blob'] | ['blob', { outputDir?: string, fileName?: string }] |['dot'] |['line'] |@@ -28,7 +28,8 @@ export type ReporterDescription =['json'] | ['json', { outputFile?: string }] |['html'] | ['html', { outputFolder?: string, open?: 'always' | 'never' | 'on-failure', host?: string, port?: number, attachmentsBaseURL?: string }] |['null'] |- [string] | [string, any];+ [string] | [string, any]+>;type UseOptions<TestArgs, WorkerArgs> = Partial<WorkerArgs> & Partial<TestArgs>;diff --git a/utils/generate_types/overrides-test.d.ts b/utils/generate_types/overrides-test.d.tsindex 72cdf3a7b3..9d58db13fe 100644--- a/utils/generate_types/overrides-test.d.ts+++ b/utils/generate_types/overrides-test.d.ts@@ -17,7 +17,7 @@import type { APIRequestContext, Browser, BrowserContext, BrowserContextOptions, Page, LaunchOptions, ViewportSize, Geolocation, HTTPCredentials, Locator, APIResponse, PageScreenshotOptions } from 'playwright-core';export * from 'playwright-core';-export type ReporterDescription =+export type ReporterDescription = Readonly<['blob'] | ['blob', { outputDir?: string, fileName?: string }] |['dot'] |['line'] |@@ -27,7 +27,8 @@ export type ReporterDescription =['json'] | ['json', { outputFile?: string }] |['html'] | ['html', { outputFolder?: string, open?: 'always' | 'never' | 'on-failure', host?: string, port?: number, attachmentsBaseURL?: string }] |['null'] |- [string] | [string, any];+ [string] | [string, any]+>;type UseOptions<TestArgs, WorkerArgs> = Partial<WorkerArgs> & Partial<TestArgs>;