chore: migrate formatting to Oxfmt (#615)
This commit is contained in:
@@ -311,9 +311,7 @@ const runScenario = async (
|
||||
};
|
||||
|
||||
/** Controlled Playwright/CDP scenario driver with exact process ownership. */
|
||||
export class PlaywrightBrowserScenarioProvider
|
||||
implements BrowserScenarioCapturePort
|
||||
{
|
||||
export class PlaywrightBrowserScenarioProvider implements BrowserScenarioCapturePort {
|
||||
constructor(
|
||||
private readonly factory: BrowserScenarioSessionFactory = lazyPlaywrightFactory,
|
||||
) {}
|
||||
|
||||
@@ -305,13 +305,11 @@ export const readApplicationState = async (
|
||||
}> => {
|
||||
const pages = application.windows();
|
||||
const pageSnapshotsPromise: Promise<ElectronPageSnapshot[]> = Promise.all(
|
||||
pages.map(
|
||||
async (page: Page, index): Promise<ElectronPageSnapshot> => ({
|
||||
index,
|
||||
url: page.url(),
|
||||
title: await page.title(),
|
||||
}),
|
||||
),
|
||||
pages.map(async (page: Page, index): Promise<ElectronPageSnapshot> => ({
|
||||
index,
|
||||
url: page.url(),
|
||||
title: await page.title(),
|
||||
})),
|
||||
);
|
||||
const windowMetadataPromise: Promise<ElectronWindowMetadata[]> = application
|
||||
.evaluate(({ BrowserWindow }) =>
|
||||
|
||||
@@ -146,9 +146,7 @@ const createCoverage = (hookSnapshot: ElectronHookSnapshot) => {
|
||||
};
|
||||
|
||||
/** Launch an owned Electron application through the official Playwright API. */
|
||||
export class PlaywrightElectronActiveProvider
|
||||
implements ElectronActiveObservationPort
|
||||
{
|
||||
export class PlaywrightElectronActiveProvider implements ElectronActiveObservationPort {
|
||||
identity(): ProviderIdentity {
|
||||
return PLAYWRIGHT_ELECTRON_ACTIVE_PROVIDER_IDENTITY;
|
||||
}
|
||||
|
||||
@@ -274,9 +274,7 @@ export class PlaywrightScenarioSession implements BrowserScenarioSessionPort {
|
||||
}
|
||||
|
||||
/** Production Playwright/CDP session factory. */
|
||||
export class PlaywrightScenarioSessionFactory
|
||||
implements BrowserScenarioSessionFactory
|
||||
{
|
||||
export class PlaywrightScenarioSessionFactory implements BrowserScenarioSessionFactory {
|
||||
constructor(
|
||||
private readonly environment: Readonly<
|
||||
Record<string, string | undefined>
|
||||
|
||||
Reference in New Issue
Block a user