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
chore: expose electron types (#5362)
Pavel Feldmanb32be4b3d487
diff --git a/index.d.ts b/index.d.tsindex 4e7b270a07..a5ca210dbf 100644--- a/index.d.ts+++ b/index.d.ts@@ -20,3 +20,4 @@ export * from './types/types';export const webkit: types.BrowserType<types.WebKitBrowser>;export const chromium: types.BrowserType<types.ChromiumBrowser>;export const firefox: types.BrowserType<types.FirefoxBrowser>;+export const _electron: types.Electron;diff --git a/test/fixtures.ts b/test/fixtures.tsindex d411c81ad9..37c4bb1065 100644--- a/test/fixtures.ts+++ b/test/fixtures.ts@@ -20,7 +20,7 @@ import fs from 'fs';import path from 'path';import util from 'util';import os from 'os';-import type { Browser, BrowserContext, BrowserType, Electron, Page } from '../index';+import type { Browser, BrowserContext, BrowserType, Page } from '../index';import { Connection } from '../lib/client/connection';import { Transport } from '../lib/protocol/transport';import { installCoverageHooks } from './coverage';@@ -194,5 +194,4 @@ export const afterAll = folio.afterAll;declare module '../index' {const _android: Android;- const _electron: Electron;}