diff --git a/core/src/utils/test/playwright/playwright-declarations.ts b/core/src/utils/test/playwright/playwright-declarations.ts index 6260f40647..80f65fbab6 100644 --- a/core/src/utils/test/playwright/playwright-declarations.ts +++ b/core/src/utils/test/playwright/playwright-declarations.ts @@ -96,7 +96,9 @@ export interface E2EPage extends Page { _e2eEvents: Map; } -export type BrowserNameOrCallback = string | ((browserName: string) => boolean); +type BrowserName = 'chromium' | 'firefox' | 'webkit'; + +export type BrowserNameOrCallback = BrowserName | ((browserName: BrowserName) => boolean); export interface E2ESkip { rtl: (reason?: string) => void;