@unotest/web 0.29.0 → 0.30.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.claude/skills/write-e2e-test/SKILL.md +41 -2
- package/.claude/skills/write-e2e-test-ground/SKILL.md +44 -2
- package/CHANGELOG.md +130 -0
- package/dist/config/schema.d.ts +12 -12
- package/dist/config/schema.js +1 -1
- package/dist/driver/index.d.ts +3 -3
- package/dist/driver/index.js +1 -1
- package/dist/dsl/index.d.ts +2 -2
- package/dist/dsl/index.js +1 -1
- package/dist/dsl/web-dsl-language-service.js +1 -1
- package/dist/inspection/page-inject.d.ts +1 -1
- package/dist/{interfaces-SzdtOj1F.d.ts → interfaces-BluheUKs.d.ts} +9 -2
- package/dist/mcp/server.js +1 -1
- package/dist/runner/cli.js +1 -1
- package/dist/runner/init/chrome-probe.js +1 -1
- package/dist/runner/init.js +1 -1
- package/dist/runner/install-chromium.js +1 -1
- package/dist/runner/prepare-fix.js +1 -1
- package/dist/runner/scaffold-workspace.js +1 -1
- package/dist/runner/serve-fixture.js +1 -1
- package/dist/runner/web-runner-adapter.js +1 -1
- package/package.json +8 -8
- package/types/unotest-dsl.d.ts +2 -2
|
@@ -234,6 +234,13 @@ interface CookieOptions {
|
|
|
234
234
|
secure?: boolean;
|
|
235
235
|
sameSite?: "Strict" | "Lax" | "None";
|
|
236
236
|
}
|
|
237
|
+
/** What an attaching client applies to a context it did not create. Only
|
|
238
|
+
* the dialog policy: the rest of {@link ContextOptions} was decided by the
|
|
239
|
+
* process that owns the browser. Without a `dialog` listener Playwright
|
|
240
|
+
* dismisses every dialog on behalf of the client that has none — and a
|
|
241
|
+
* second client watching the run's page would answer `confirm()` with
|
|
242
|
+
* "no" before the run's own accept lands. */
|
|
243
|
+
type AttachOptions = Pick<ContextOptions, "dialogPolicy">;
|
|
237
244
|
|
|
238
245
|
interface WebDriver {
|
|
239
246
|
/**
|
|
@@ -263,7 +270,7 @@ interface WebDriver {
|
|
|
263
270
|
*/
|
|
264
271
|
wsEndpoint(): string | undefined;
|
|
265
272
|
connectShared(wsEndpoint: string, browser: LaunchOptions["browser"]): Promise<void>;
|
|
266
|
-
attachExisting(): DriverContext;
|
|
273
|
+
attachExisting(opts?: AttachOptions): DriverContext;
|
|
267
274
|
}
|
|
268
275
|
/** One captured network request/response, recorded only under
|
|
269
276
|
* `UNOTEST_NETWORK`. `status`/`ok` come from the response; `failureText`
|
|
@@ -526,4 +533,4 @@ interface AncestorHint {
|
|
|
526
533
|
className?: string;
|
|
527
534
|
}
|
|
528
535
|
|
|
529
|
-
export { type
|
|
536
|
+
export { type AttachOptions as A, type ContextOptions as C, type DriverContext as D, type ElementHint as E, type FillOptions as F, type GotoOptions as G, type HoverOptions as H, type LaunchOptions as L, type NetworkEntry as N, type PressOptions as P, type ReloadOptions as R, type ScreenshotOptions as S, type Viewport as V, type WebDriver as W, type ActionTimeout as a, type CheckOptions as b, type ClickOptions as c, type CookieOptions as d, type DriverPage as e, type NavigationOptions as f, type SelectOptions as g, type WaitOptions as h, type WaitState as i, type LocatorValue as j, type LocatorStep as k, appendStep as l, describeLocator as m, isLocatorValue as n, rootedAt as r };
|