refactor(e2e): prendre les types navigateur chez les helpers plutôt que chez playwright
This commit is contained in:
@@ -28,7 +28,6 @@
|
||||
* can circulate.
|
||||
*/
|
||||
|
||||
import { type BrowserContext, type Frame, type Page } from "playwright";
|
||||
import { execSync } from "node:child_process";
|
||||
import * as fs from "node:fs";
|
||||
import * as os from "node:os";
|
||||
@@ -55,7 +54,10 @@ import {
|
||||
serveOnEphemeralPort,
|
||||
setupBrokerPage,
|
||||
within,
|
||||
type BrowserContext,
|
||||
type Frame,
|
||||
type JourneyDeclaration,
|
||||
type Page,
|
||||
type Prerequisite,
|
||||
type RunProfile,
|
||||
} from "ng-e2e-helpers";
|
||||
|
||||
@@ -29,8 +29,7 @@
|
||||
* shared wallet (as faithfulReconnect does) — and writes from it.
|
||||
*/
|
||||
|
||||
import type { Frame, Page, BrowserContext } from "playwright";
|
||||
import { launchWatchedContext, setupBrokerPage, type RunProfile } from "ng-e2e-helpers";
|
||||
import { launchWatchedContext, setupBrokerPage, type RunProfile, type Frame, type Page, type BrowserContext } from "ng-e2e-helpers";
|
||||
import { WALLET, buildBundle, mintBatchWallet, serveHarness } from "./harness-page";
|
||||
|
||||
type Check = { name: string; ok: boolean; detail?: string };
|
||||
|
||||
@@ -21,8 +21,7 @@
|
||||
* Run: `bun run e2e/repro-fresh-wallet.ts`.
|
||||
*/
|
||||
|
||||
import type { Frame, Page, BrowserContext } from "playwright";
|
||||
import { mintWalletProfileKeepingContext, setupBrokerPage, type RunProfile } from "ng-e2e-helpers";
|
||||
import { mintWalletProfileKeepingContext, setupBrokerPage, type RunProfile, type Frame, type Page, type BrowserContext } from "ng-e2e-helpers";
|
||||
import { WALLET, buildBundle, serveHarness } from "./harness-page";
|
||||
|
||||
type Check = { name: string; ok: boolean; detail?: string };
|
||||
|
||||
@@ -15,7 +15,6 @@
|
||||
import * as fs from "node:fs";
|
||||
import * as os from "node:os";
|
||||
import * as path from "node:path";
|
||||
import type { Frame, Page, BrowserContext } from "playwright";
|
||||
import {
|
||||
armSuiteDeadline,
|
||||
closeContext,
|
||||
@@ -27,6 +26,9 @@ import {
|
||||
setupBrokerPage,
|
||||
within,
|
||||
type RunProfile,
|
||||
type Frame,
|
||||
type Page,
|
||||
type BrowserContext,
|
||||
} from "ng-e2e-helpers";
|
||||
import { WALLET, buildBundle, mintBatchWallet, serveHarness } from "./harness-page";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user