@unotest/web 0.47.0 → 0.48.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 +3 -2
- package/.claude/skills/write-e2e-test-ground/SKILL.md +3 -2
- package/CHANGELOG.md +67 -3
- package/dist/config/schema.d.ts +106 -106
- package/dist/config/schema.js +1 -1
- package/dist/driver/index.d.ts +2 -2
- package/dist/driver/index.js +1 -1
- package/dist/dsl/index.d.ts +18 -3
- 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-LE6GsJ0c.d.ts → interfaces-CTMGjJIs.d.ts} +8 -0
- 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/guides/dsl-reference.md +74 -14
- package/package.json +8 -8
- package/types/unotest-dsl.d.ts +4 -4
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { InjectedDomHelpers } from '@unotest/grounder-client/dom-walker';
|
|
2
2
|
import { PickerMode } from '@unotest/protocol';
|
|
3
|
-
import { E as ElementHint } from '../interfaces-
|
|
3
|
+
import { E as ElementHint } from '../interfaces-CTMGjJIs.js';
|
|
4
4
|
import '../config/schema.js';
|
|
5
5
|
import 'zod';
|
|
6
6
|
|
|
@@ -525,6 +525,14 @@ interface DriverContext {
|
|
|
525
525
|
* loss of the page, which a resize must never cost.
|
|
526
526
|
*/
|
|
527
527
|
setViewport(size: ViewportSize): Promise<void>;
|
|
528
|
+
/**
|
|
529
|
+
* True while opening this context again would lose nothing the test did
|
|
530
|
+
* in it: one page, still on `about:blank`, and no call that set the
|
|
531
|
+
* context up — a route mock, a cookie or storage value, the page clock,
|
|
532
|
+
* emulated media, a second page. `setViewport(null)` reopens the context
|
|
533
|
+
* on the real window only then.
|
|
534
|
+
*/
|
|
535
|
+
untouched(): boolean;
|
|
528
536
|
/** The browser's own id of this context (CDP `browserContextId`), the
|
|
529
537
|
* same in every process connected to the browser — or null where the
|
|
530
538
|
* engine has no such id to give (Firefox, WebKit) or no page is open. */
|