@rehearsal-labs/retest 0.1.0 → 0.2.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/README.md +6 -0
- package/dist/agent/session.d.ts +21 -2
- package/dist/agent/session.d.ts.map +1 -1
- package/dist/agent/session.js +73 -11
- package/dist/api/app-page.d.ts +39 -3
- package/dist/api/app-page.d.ts.map +1 -1
- package/dist/api/app-page.js +108 -0
- package/dist/api/dialog.d.ts +38 -0
- package/dist/api/dialog.d.ts.map +1 -0
- package/dist/api/dialog.js +78 -0
- package/dist/api/drag.d.ts +32 -0
- package/dist/api/drag.d.ts.map +1 -0
- package/dist/api/drag.js +26 -0
- package/dist/api/files.d.ts +49 -0
- package/dist/api/files.d.ts.map +1 -0
- package/dist/api/files.js +168 -0
- package/dist/api/inbox.d.ts +97 -0
- package/dist/api/inbox.d.ts.map +1 -0
- package/dist/api/inbox.js +191 -0
- package/dist/api/locator-recipes.d.ts +1 -1
- package/dist/api/locator-recipes.d.ts.map +1 -1
- package/dist/api/locator-recipes.js +4 -3
- package/dist/api/page.d.ts +214 -4
- package/dist/api/page.d.ts.map +1 -1
- package/dist/api/route.d.ts +21 -0
- package/dist/api/route.d.ts.map +1 -0
- package/dist/api/route.js +99 -0
- package/dist/api/test-run.d.ts +127 -1
- package/dist/api/test-run.d.ts.map +1 -1
- package/dist/api/test-run.js +293 -0
- package/dist/assertions/expect.d.ts +91 -2
- package/dist/assertions/expect.d.ts.map +1 -1
- package/dist/assertions/expect.js +98 -0
- package/dist/assertions/look-until.d.ts +5 -0
- package/dist/assertions/look-until.d.ts.map +1 -1
- package/dist/assertions/look-until.js +1 -1
- package/dist/assertions/poll-layout.d.ts +24 -0
- package/dist/assertions/poll-layout.d.ts.map +1 -0
- package/dist/assertions/poll-layout.js +63 -0
- package/dist/assertions/screenshot.d.ts +36 -0
- package/dist/assertions/screenshot.d.ts.map +1 -0
- package/dist/assertions/screenshot.js +125 -0
- package/dist/browser/accessibility.d.ts.map +1 -1
- package/dist/browser/accessibility.js +22 -1
- package/dist/browser/actionability.d.ts +9 -6
- package/dist/browser/actionability.d.ts.map +1 -1
- package/dist/browser/actionability.js +17 -8
- package/dist/browser/browser.d.ts.map +1 -1
- package/dist/browser/browser.js +15 -4
- package/dist/browser/cdp/connection.d.ts +6 -0
- package/dist/browser/cdp/connection.d.ts.map +1 -1
- package/dist/browser/cdp/connection.js +8 -0
- package/dist/browser/checked-state.d.ts +2 -2
- package/dist/browser/checked-state.d.ts.map +1 -1
- package/dist/browser/chromium-process.d.ts +9 -2
- package/dist/browser/chromium-process.d.ts.map +1 -1
- package/dist/browser/chromium-process.js +17 -4
- package/dist/browser/contract.d.ts +119 -5
- package/dist/browser/contract.d.ts.map +1 -1
- package/dist/browser/dialogs.d.ts +157 -0
- package/dist/browser/dialogs.d.ts.map +1 -0
- package/dist/browser/dialogs.js +271 -0
- package/dist/browser/downloads.d.ts +71 -0
- package/dist/browser/downloads.d.ts.map +1 -0
- package/dist/browser/downloads.js +253 -0
- package/dist/browser/drag.d.ts +50 -0
- package/dist/browser/drag.d.ts.map +1 -0
- package/dist/browser/drag.js +584 -0
- package/dist/browser/electron-window-watch.d.ts +32 -0
- package/dist/browser/electron-window-watch.d.ts.map +1 -0
- package/dist/browser/electron-window-watch.js +93 -0
- package/dist/browser/electron.d.ts +13 -2
- package/dist/browser/electron.d.ts.map +1 -1
- package/dist/browser/electron.js +53 -8
- package/dist/browser/element-queries.d.ts +51 -15
- package/dist/browser/element-queries.d.ts.map +1 -1
- package/dist/browser/element-queries.js +92 -13
- package/dist/browser/emulation.d.ts.map +1 -1
- package/dist/browser/emulation.js +7 -5
- package/dist/browser/file-chooser.d.ts +75 -0
- package/dist/browser/file-chooser.d.ts.map +1 -0
- package/dist/browser/file-chooser.js +449 -0
- package/dist/browser/firefox/input.d.ts +5 -0
- package/dist/browser/firefox/input.d.ts.map +1 -1
- package/dist/browser/firefox/input.js +6 -3
- package/dist/browser/firefox/page.d.ts +11 -1
- package/dist/browser/firefox/page.d.ts.map +1 -1
- package/dist/browser/firefox/page.js +66 -7
- package/dist/browser/frames.d.ts +205 -0
- package/dist/browser/frames.d.ts.map +1 -0
- package/dist/browser/frames.js +657 -0
- package/dist/browser/input-guard.d.ts +18 -5
- package/dist/browser/input-guard.d.ts.map +1 -1
- package/dist/browser/input-guard.js +65 -6
- package/dist/browser/isolated-world.d.ts +8 -1
- package/dist/browser/isolated-world.d.ts.map +1 -1
- package/dist/browser/layout.d.ts +120 -0
- package/dist/browser/layout.d.ts.map +1 -0
- package/dist/browser/layout.js +213 -0
- package/dist/browser/locate.d.ts +10 -0
- package/dist/browser/locate.d.ts.map +1 -1
- package/dist/browser/locate.js +24 -6
- package/dist/browser/origin-document.d.ts +4 -0
- package/dist/browser/origin-document.d.ts.map +1 -1
- package/dist/browser/origin-document.js +9 -1
- package/dist/browser/page-scripts.d.ts +48 -0
- package/dist/browser/page-scripts.d.ts.map +1 -1
- package/dist/browser/page-scripts.js +515 -39
- package/dist/browser/page.d.ts +60 -1
- package/dist/browser/page.d.ts.map +1 -1
- package/dist/browser/page.js +275 -32
- package/dist/browser/popups.d.ts +166 -0
- package/dist/browser/popups.d.ts.map +1 -0
- package/dist/browser/popups.js +317 -0
- package/dist/browser/routes.d.ts +97 -0
- package/dist/browser/routes.d.ts.map +1 -0
- package/dist/browser/routes.js +226 -0
- package/dist/browser/screenshot.d.ts +44 -0
- package/dist/browser/screenshot.d.ts.map +1 -0
- package/dist/browser/screenshot.js +51 -0
- package/dist/browser/shadow-candidates.d.ts +20 -0
- package/dist/browser/shadow-candidates.d.ts.map +1 -0
- package/dist/browser/shadow-candidates.js +77 -0
- package/dist/browser/webkit/page.d.ts +11 -1
- package/dist/browser/webkit/page.d.ts.map +1 -1
- package/dist/browser/webkit/page.js +53 -2
- package/dist/browser/webkit/relay.d.ts.map +1 -1
- package/dist/browser/webkit/relay.js +5 -1
- package/dist/cli/commands/run.d.ts.map +1 -1
- package/dist/cli/commands/run.js +2 -0
- package/dist/cli/inspect/test-timeline.d.ts.map +1 -1
- package/dist/cli/inspect/test-timeline.js +38 -4
- package/dist/config/loaded.d.ts +12 -2
- package/dist/config/loaded.d.ts.map +1 -1
- package/dist/config/read-inboxes.d.ts +10 -0
- package/dist/config/read-inboxes.d.ts.map +1 -0
- package/dist/config/read-inboxes.js +78 -0
- package/dist/config/register.d.ts +5 -1
- package/dist/config/register.d.ts.map +1 -1
- package/dist/config/types.d.ts +36 -0
- package/dist/config/types.d.ts.map +1 -1
- package/dist/config/validate.d.ts.map +1 -1
- package/dist/config/validate.js +4 -1
- package/dist/diagnostics/artifact.d.ts.map +1 -1
- package/dist/diagnostics/artifact.js +10 -2
- package/dist/diagnostics/attempt.d.ts +5 -0
- package/dist/diagnostics/attempt.d.ts.map +1 -1
- package/dist/diagnostics/attempt.js +10 -0
- package/dist/diagnostics/chromium-collector.d.ts +9 -1
- package/dist/diagnostics/chromium-collector.d.ts.map +1 -1
- package/dist/diagnostics/chromium-collector.js +19 -4
- package/dist/diagnostics/observations.d.ts +8 -0
- package/dist/diagnostics/observations.d.ts.map +1 -1
- package/dist/diagnostics/session-capture.d.ts.map +1 -1
- package/dist/diagnostics/session-capture.js +8 -0
- package/dist/index.d.ts +9 -4
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/media/policy.d.ts +2 -2
- package/dist/media/policy.d.ts.map +1 -1
- package/dist/media/policy.js +1 -1
- package/dist/playwright/not-yet.d.ts.map +1 -1
- package/dist/playwright/not-yet.js +5 -2
- package/dist/protocol/commands.d.ts +122 -13
- package/dist/protocol/commands.d.ts.map +1 -1
- package/dist/protocol/commands.js +85 -6
- package/dist/protocol/diagnostics.d.ts +10 -0
- package/dist/protocol/diagnostics.d.ts.map +1 -1
- package/dist/protocol/diagnostics.js +5 -0
- package/dist/protocol/dialogs.d.ts +104 -0
- package/dist/protocol/dialogs.d.ts.map +1 -0
- package/dist/protocol/dialogs.js +101 -0
- package/dist/protocol/drag.d.ts +45 -0
- package/dist/protocol/drag.d.ts.map +1 -0
- package/dist/protocol/drag.js +31 -0
- package/dist/protocol/events.d.ts +153 -1
- package/dist/protocol/events.d.ts.map +1 -1
- package/dist/protocol/events.js +97 -0
- package/dist/protocol/files.d.ts +83 -0
- package/dist/protocol/files.d.ts.map +1 -0
- package/dist/protocol/files.js +68 -0
- package/dist/protocol/inbox.d.ts +87 -0
- package/dist/protocol/inbox.d.ts.map +1 -0
- package/dist/protocol/inbox.js +51 -0
- package/dist/protocol/index.d.ts +4 -1
- package/dist/protocol/index.d.ts.map +1 -1
- package/dist/protocol/layout-checks.d.ts +83 -0
- package/dist/protocol/layout-checks.d.ts.map +1 -0
- package/dist/protocol/layout-checks.js +214 -0
- package/dist/protocol/layout.d.ts +135 -0
- package/dist/protocol/layout.d.ts.map +1 -0
- package/dist/protocol/layout.js +124 -0
- package/dist/protocol/locator-checks.d.ts +19 -2
- package/dist/protocol/locator-checks.d.ts.map +1 -1
- package/dist/protocol/locator-checks.js +23 -1
- package/dist/protocol/locator.d.ts +55 -7
- package/dist/protocol/locator.d.ts.map +1 -1
- package/dist/protocol/locator.js +99 -18
- package/dist/protocol/messages.d.ts +95 -0
- package/dist/protocol/messages.d.ts.map +1 -1
- package/dist/protocol/messages.js +63 -0
- package/dist/protocol/popups.d.ts +43 -0
- package/dist/protocol/popups.d.ts.map +1 -0
- package/dist/protocol/popups.js +27 -0
- package/dist/protocol/result.d.ts +5 -0
- package/dist/protocol/result.d.ts.map +1 -1
- package/dist/protocol/result.js +1 -0
- package/dist/protocol/routes.d.ts +136 -0
- package/dist/protocol/routes.d.ts.map +1 -0
- package/dist/protocol/routes.js +191 -0
- package/dist/protocol/screenshot.d.ts +219 -0
- package/dist/protocol/screenshot.d.ts.map +1 -0
- package/dist/protocol/screenshot.js +335 -0
- package/dist/reporters/actions.d.ts +6 -4
- package/dist/reporters/actions.d.ts.map +1 -1
- package/dist/reporters/actions.js +24 -6
- package/dist/reporters/agent.d.ts.map +1 -1
- package/dist/reporters/agent.js +4 -2
- package/dist/reporters/dialogs-popups.d.ts +22 -0
- package/dist/reporters/dialogs-popups.d.ts.map +1 -0
- package/dist/reporters/dialogs-popups.js +30 -0
- package/dist/reporters/failure-card.d.ts +10 -1
- package/dist/reporters/failure-card.d.ts.map +1 -1
- package/dist/reporters/failure-card.js +5 -1
- package/dist/reporters/format.d.ts +33 -0
- package/dist/reporters/format.d.ts.map +1 -1
- package/dist/reporters/format.js +42 -0
- package/dist/reporters/html/comparison-view.d.ts +12 -0
- package/dist/reporters/html/comparison-view.d.ts.map +1 -0
- package/dist/reporters/html/comparison-view.js +21 -0
- package/dist/reporters/html/diagnostics-view.js +8 -0
- package/dist/reporters/html/downloads-view.d.ts +10 -0
- package/dist/reporters/html/downloads-view.d.ts.map +1 -0
- package/dist/reporters/html/downloads-view.js +29 -0
- package/dist/reporters/html/style.d.ts.map +1 -1
- package/dist/reporters/html/style.js +3 -0
- package/dist/reporters/html/summary-view.d.ts.map +1 -1
- package/dist/reporters/html/summary-view.js +3 -2
- package/dist/reporters/html/test-view.d.ts.map +1 -1
- package/dist/reporters/html/test-view.js +6 -3
- package/dist/reporters/html/timeline-view.d.ts.map +1 -1
- package/dist/reporters/html/timeline-view.js +26 -2
- package/dist/reporters/human-card.js +10 -0
- package/dist/reporters/human.d.ts.map +1 -1
- package/dist/reporters/human.js +3 -1
- package/dist/reporters/routes.d.ts +9 -0
- package/dist/reporters/routes.d.ts.map +1 -0
- package/dist/reporters/routes.js +17 -0
- package/dist/runner/child-program.js +10 -0
- package/dist/runner/contract.d.ts +5 -0
- package/dist/runner/contract.d.ts.map +1 -1
- package/dist/runner/dialogs.d.ts +71 -0
- package/dist/runner/dialogs.d.ts.map +1 -0
- package/dist/runner/dialogs.js +189 -0
- package/dist/runner/files.d.ts +79 -0
- package/dist/runner/files.d.ts.map +1 -0
- package/dist/runner/files.js +312 -0
- package/dist/runner/inbox-links.d.ts +19 -0
- package/dist/runner/inbox-links.d.ts.map +1 -0
- package/dist/runner/inbox-links.js +63 -0
- package/dist/runner/inbox.d.ts +87 -0
- package/dist/runner/inbox.d.ts.map +1 -0
- package/dist/runner/inbox.js +340 -0
- package/dist/runner/index.d.ts +2 -1
- package/dist/runner/index.d.ts.map +1 -1
- package/dist/runner/native-pool.d.ts.map +1 -1
- package/dist/runner/native-pool.js +2 -0
- package/dist/runner/observations.d.ts +15 -2
- package/dist/runner/observations.d.ts.map +1 -1
- package/dist/runner/observations.js +109 -6
- package/dist/runner/popups.d.ts +82 -0
- package/dist/runner/popups.d.ts.map +1 -0
- package/dist/runner/popups.js +236 -0
- package/dist/runner/redactor.d.ts.map +1 -1
- package/dist/runner/redactor.js +10 -6
- package/dist/runner/routes.d.ts +23 -0
- package/dist/runner/routes.d.ts.map +1 -0
- package/dist/runner/routes.js +128 -0
- package/dist/runner/run-media.d.ts +6 -0
- package/dist/runner/run-media.d.ts.map +1 -1
- package/dist/runner/run-media.js +21 -0
- package/dist/runner/run-session.d.ts.map +1 -1
- package/dist/runner/run-session.js +93 -8
- package/dist/runner/running-test.d.ts +35 -0
- package/dist/runner/running-test.d.ts.map +1 -1
- package/dist/runner/running-test.js +333 -22
- package/dist/runner/screenshot-baselines.d.ts +159 -0
- package/dist/runner/screenshot-baselines.d.ts.map +1 -0
- package/dist/runner/screenshot-baselines.js +357 -0
- package/dist/runner/secrets.d.ts +13 -0
- package/dist/runner/secrets.d.ts.map +1 -1
- package/dist/runner/secrets.js +6 -4
- package/dist/runner/test-pages.d.ts +3 -1
- package/dist/runner/test-pages.d.ts.map +1 -1
- package/dist/runner/test-pages.js +4 -3
- package/dist/schemas/event-v1.schema.json +118873 -6311
- package/dist/schemas/result-v1.schema.json +4 -0
- package/dist/shared/image-diff.d.ts +36 -0
- package/dist/shared/image-diff.d.ts.map +1 -0
- package/dist/shared/image-diff.js +242 -0
- package/dist/shared/metadata-process.d.ts +4 -1
- package/dist/shared/metadata-process.d.ts.map +1 -1
- package/dist/shared/metadata-process.js +51 -9
- package/dist/shared/png.d.ts +35 -0
- package/dist/shared/png.d.ts.map +1 -0
- package/dist/shared/png.js +251 -0
- package/dist/shared/process-ownership.d.ts +15 -4
- package/dist/shared/process-ownership.d.ts.map +1 -1
- package/dist/shared/process-ownership.js +123 -34
- package/dist/store/artifacts.d.ts +23 -2
- package/dist/store/artifacts.d.ts.map +1 -1
- package/dist/store/artifacts.js +40 -1
- package/dist/store/rebuild-result.d.ts.map +1 -1
- package/dist/store/rebuild-result.js +6 -0
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"test-run.d.ts","sourceRoot":"","sources":["../../src/api/test-run.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAA;AACvF,OAAO,KAAK,EAAE,gBAAgB,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAA;AACjF,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAA;AACvD,OAAO,KAAK,EAAE,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAA;AACtE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAA;AAC3D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAA;AAC3D,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAA;
|
|
1
|
+
{"version":3,"file":"test-run.d.ts","sourceRoot":"","sources":["../../src/api/test-run.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAA;AACvF,OAAO,KAAK,EAAE,gBAAgB,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAA;AACjF,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAA;AACvD,OAAO,KAAK,EAAE,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,C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E,IAAI,EAAE,MAAM,OAAO,CAAC,CAAC,CAAC,GAAG,SAAS,CAAC,CAAC,CAAC;IAsB/G,qEAAqE;IACrE,IAAI,CAAC,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC,EAAE,QAAQ,EAAE,cAAc,GAAG,SAAS,EAAE,YAAY,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC,CAAC,CAAC;IAwB5H,kGAAkG;IAClG,YAAY,CAAC,QAAQ,EAAE,cAAc,GAAG,SAAS,GAAG,MAAM;CAiL3D"}
|
package/dist/api/test-run.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { dirname, join } from 'node:path';
|
|
1
2
|
import { describeCommand } from "../protocol/commands.js";
|
|
2
3
|
import { Deadline, elapsedMs, smallestBudget } from "../protocol/deadline.js";
|
|
3
4
|
import { failure, withAlso, withLocation } from "../protocol/failures.js";
|
|
@@ -30,6 +31,13 @@ export class TestRun {
|
|
|
30
31
|
#failures = [];
|
|
31
32
|
#answers = new Map();
|
|
32
33
|
#evaluations = new Map();
|
|
34
|
+
#inboxReads = new Map();
|
|
35
|
+
// Waits for dialogs and popups and answers to dialogs, by id; a wait is answered more than once, armed then opened.
|
|
36
|
+
#pageWaits = new Map();
|
|
37
|
+
// The dialogs the test was given and has not answered yet, by id, with where it asked for each.
|
|
38
|
+
#dialogsOpen = new Map();
|
|
39
|
+
#filesRequests = new Map();
|
|
40
|
+
#routeChanges = new Map();
|
|
33
41
|
#lanes = new CommandLanes();
|
|
34
42
|
#aborted = Promise.withResolvers();
|
|
35
43
|
// Work created since the last function the test ran returned; each function answers for its own.
|
|
@@ -122,6 +130,246 @@ export class TestRun {
|
|
|
122
130
|
this.#options.send({ type: 'evaluate', testId: this.testId, attemptId: this.attemptId, id, call, ...(location === undefined ? {} : { location }), ...(stepId === undefined ? {} : { stepId }) });
|
|
123
131
|
return promise;
|
|
124
132
|
}
|
|
133
|
+
/**
|
|
134
|
+
* Asks the parent to read an inbox. The parent reads the mailbox, looks again until a message arrives or the read's
|
|
135
|
+
* time runs out, and answers with the message, its codes and links hidden; `wrap` turns that answer into what the
|
|
136
|
+
* test receives. The read touches no page, so it holds no app, and it starts at once. Its time is its own `timeoutMs`,
|
|
137
|
+
* or the assertion budget, cut to what the test has left. It changes what the next read gives, so it may not run
|
|
138
|
+
* inside the function `expect.poll` calls.
|
|
139
|
+
*/
|
|
140
|
+
readInbox({ label, request, location, timeoutMs }, wrap) {
|
|
141
|
+
const work = { label, location };
|
|
142
|
+
const operation = this.#track('read', work);
|
|
143
|
+
const refusal = this.#refusal() ?? this.#whileReading(work);
|
|
144
|
+
if (refusal !== undefined) {
|
|
145
|
+
operation.reject(refusal);
|
|
146
|
+
return operation;
|
|
147
|
+
}
|
|
148
|
+
const id = this.#options.nextCommandId();
|
|
149
|
+
const stepId = currentScope()?.stepId;
|
|
150
|
+
this.#inboxReads.set(id, (answer) => {
|
|
151
|
+
if (answer.ok)
|
|
152
|
+
operation.resolve(wrap(answer.message));
|
|
153
|
+
else
|
|
154
|
+
operation.reject(this.fail(withLocation(answer.failure, location)));
|
|
155
|
+
});
|
|
156
|
+
const budget = this.assertionBudget(timeoutMs ?? this.timeouts.assertion);
|
|
157
|
+
this.#options.send({ type: 'inbox', testId: this.testId, attemptId: this.attemptId, id, request, timeoutMs: budget, ...(location === undefined ? {} : { location }), ...(stepId === undefined ? {} : { stepId }) });
|
|
158
|
+
return operation;
|
|
159
|
+
}
|
|
160
|
+
resolveInbox(id, answer) {
|
|
161
|
+
const resolve = this.#inboxReads.get(id);
|
|
162
|
+
if (resolve === undefined)
|
|
163
|
+
return;
|
|
164
|
+
this.#inboxReads.delete(id);
|
|
165
|
+
resolve(answer);
|
|
166
|
+
}
|
|
167
|
+
/**
|
|
168
|
+
* Asks the parent to arm an app's page for the next JavaScript dialog, runs the action once the page is armed, and
|
|
169
|
+
* resolves with what `wrap` makes of the dialog as soon as it opens. The action is still waiting then, since a page
|
|
170
|
+
* holds the input that opened a dialog until the dialog is answered; `wrap` is given the action's own promise, which
|
|
171
|
+
* settles once the action does. An action that fails before any dialog opened fails the wait with its own failure,
|
|
172
|
+
* and the parent stops waiting. A wait that sees no dialog in its time fails, unless its action failed meanwhile,
|
|
173
|
+
* whose failure it gives instead. The wait acts on a page, so it may not run inside the function `expect.poll` calls.
|
|
174
|
+
*/
|
|
175
|
+
waitForDialog(wait, wrap) {
|
|
176
|
+
return this.#waitForOpening('dialog', wait, (answer, acted) => {
|
|
177
|
+
if (!('dialog' in answer))
|
|
178
|
+
throw new Error('Retest answered a wait for a dialog with a page');
|
|
179
|
+
this.#dialogsOpen.set(answer.dialog.id, { type: answer.dialog.type, location: wait.location });
|
|
180
|
+
return wrap(answer.dialog, acted);
|
|
181
|
+
});
|
|
182
|
+
}
|
|
183
|
+
/**
|
|
184
|
+
* As `waitForDialog`, for the next page the action opens: the parent hands it over as an app of its own, and the wait
|
|
185
|
+
* resolves with what `wrap` makes of it once the action is over too, so the next command to the page that opened it
|
|
186
|
+
* never meets the action still running. An action that fails fails the wait with its own failure.
|
|
187
|
+
*/
|
|
188
|
+
waitForPopup(wait, wrap) {
|
|
189
|
+
return this.#waitForOpening('popup', wait, async (answer, acted) => {
|
|
190
|
+
if (!('popup' in answer))
|
|
191
|
+
throw new Error('Retest answered a wait for a page with a dialog');
|
|
192
|
+
await acted;
|
|
193
|
+
return wrap(answer.popup);
|
|
194
|
+
});
|
|
195
|
+
}
|
|
196
|
+
/**
|
|
197
|
+
* Asks the parent to answer a dialog the test was given, then waits for the action that opened it, so the answer's
|
|
198
|
+
* step ends once its action has. An answer the parent could not give fails, and an action that failed fails it too,
|
|
199
|
+
* with its own failure. It acts on a page, so it may not run inside the function `expect.poll` calls.
|
|
200
|
+
*/
|
|
201
|
+
answerDialog({ app, dialog, accept, promptText, label, location, acted }) {
|
|
202
|
+
const work = { label, location };
|
|
203
|
+
const operation = this.#track('read', work);
|
|
204
|
+
const refusal = this.#refusal() ?? this.#whileReading(work);
|
|
205
|
+
if (refusal !== undefined) {
|
|
206
|
+
operation.reject(refusal);
|
|
207
|
+
return operation;
|
|
208
|
+
}
|
|
209
|
+
this.#dialogsOpen.delete(dialog);
|
|
210
|
+
const id = this.#options.nextCommandId();
|
|
211
|
+
const stepId = currentScope()?.stepId;
|
|
212
|
+
this.#pageWaits.set(id, (answer) => {
|
|
213
|
+
this.#pageWaits.delete(id);
|
|
214
|
+
if (answer.kind === 'answered')
|
|
215
|
+
acted.then(() => operation.resolve(), (error) => operation.reject(error));
|
|
216
|
+
else if (answer.kind === 'failed')
|
|
217
|
+
operation.reject(this.fail(withLocation(answer.failure, location)));
|
|
218
|
+
});
|
|
219
|
+
const request = { kind: 'answer', dialog, accept, ...(promptText === undefined ? {} : { promptText }) };
|
|
220
|
+
const timeoutMs = this.assertionBudget(this.timeouts.action);
|
|
221
|
+
this.#options.send({ type: 'dialog', testId: this.testId, attemptId: this.attemptId, id, app, request, timeoutMs, ...(location === undefined ? {} : { location }), ...(stepId === undefined ? {} : { stepId }) });
|
|
222
|
+
return operation;
|
|
223
|
+
}
|
|
224
|
+
resolveDialog(id, answer) {
|
|
225
|
+
this.#pageWaits.get(id)?.(answer);
|
|
226
|
+
}
|
|
227
|
+
resolvePopup(id, answer) {
|
|
228
|
+
this.#pageWaits.get(id)?.(answer);
|
|
229
|
+
}
|
|
230
|
+
// The wait is armed before the action runs, so the parent hands over what the action's first command opens. The
|
|
231
|
+
// answer to the request comes on another turn, so the action runs in the scope the test called from, as its step.
|
|
232
|
+
#waitForOpening(kind, { app, label, location, timeoutMs, action }, take) {
|
|
233
|
+
const work = { label, location };
|
|
234
|
+
const operation = this.#track('read', work);
|
|
235
|
+
const refusal = this.#refusal() ?? this.#whileReading(work);
|
|
236
|
+
if (refusal !== undefined) {
|
|
237
|
+
operation.reject(refusal);
|
|
238
|
+
return operation;
|
|
239
|
+
}
|
|
240
|
+
const scope = currentScope() ?? { run: this };
|
|
241
|
+
const id = this.#options.nextCommandId();
|
|
242
|
+
const sending = { app, location, stepId: scope.stepId };
|
|
243
|
+
let acted;
|
|
244
|
+
let opened = false;
|
|
245
|
+
const fail = (problem) => operation.reject(this.fail(withLocation(problem, location)));
|
|
246
|
+
this.#pageWaits.set(id, (answer) => {
|
|
247
|
+
if (answer.kind === 'armed') {
|
|
248
|
+
const running = callInScope(scope, action).then(() => undefined);
|
|
249
|
+
acted = running;
|
|
250
|
+
running.then(undefined, (error) => {
|
|
251
|
+
if (opened)
|
|
252
|
+
return;
|
|
253
|
+
this.#pageWaits.delete(id);
|
|
254
|
+
this.#sendWait(kind, this.#options.nextCommandId(), { kind: 'stop', wait: id }, 1, sending);
|
|
255
|
+
operation.reject(error);
|
|
256
|
+
});
|
|
257
|
+
return;
|
|
258
|
+
}
|
|
259
|
+
this.#pageWaits.delete(id);
|
|
260
|
+
if (answer.kind === 'opened') {
|
|
261
|
+
opened = true;
|
|
262
|
+
// The action may still be running: `take` is given its promise, so its own end is never lost.
|
|
263
|
+
const settled = acted ?? Promise.resolve();
|
|
264
|
+
Promise.resolve()
|
|
265
|
+
.then(() => take(answer, settled))
|
|
266
|
+
.then((value) => operation.resolve(value), (error) => operation.reject(error));
|
|
267
|
+
return;
|
|
268
|
+
}
|
|
269
|
+
if (answer.kind !== 'failed')
|
|
270
|
+
return;
|
|
271
|
+
// The action's own failure says more than a wait that saw nothing while the action ran.
|
|
272
|
+
if (acted === undefined)
|
|
273
|
+
fail(answer.failure);
|
|
274
|
+
else
|
|
275
|
+
acted.then(() => fail(answer.failure), (error) => operation.reject(error));
|
|
276
|
+
});
|
|
277
|
+
this.#sendWait(kind, id, { kind: 'wait' }, this.assertionBudget(timeoutMs ?? this.timeouts.action), sending);
|
|
278
|
+
return operation;
|
|
279
|
+
}
|
|
280
|
+
#sendWait(kind, id, request, timeoutMs, { app, location, stepId }) {
|
|
281
|
+
const scope = { testId: this.testId, attemptId: this.attemptId, id, app, timeoutMs, ...(location === undefined ? {} : { location }), ...(stepId === undefined ? {} : { stepId }) };
|
|
282
|
+
this.#options.send(kind === 'dialog' ? { type: 'dialog', ...scope, request } : { type: 'popup', ...scope, request });
|
|
283
|
+
}
|
|
284
|
+
/**
|
|
285
|
+
* Asks the parent to wait for what `request` names, runs `action` meanwhile when one is given, and resolves with what
|
|
286
|
+
* `wrap` makes of the parent's answer once the action is over and the parent has answered. The wait holds no app, so
|
|
287
|
+
* the action's own commands go as they would without it; the request goes first, so the parent is waiting before
|
|
288
|
+
* the action's first command arrives. An action that fails fails the wait with its own failure, and the parent lets go
|
|
289
|
+
* of what it armed. A wait with an action acts on a page, so it may not run inside the function `expect.poll` calls.
|
|
290
|
+
*/
|
|
291
|
+
awaitFiles({ label, request, location, timeoutMs }, wrap, action) {
|
|
292
|
+
const work = { label, location };
|
|
293
|
+
const operation = this.#track('read', work);
|
|
294
|
+
const refusal = this.#refusal() ?? (action === undefined ? undefined : this.#whileReading(work));
|
|
295
|
+
if (refusal !== undefined) {
|
|
296
|
+
operation.reject(refusal);
|
|
297
|
+
return operation;
|
|
298
|
+
}
|
|
299
|
+
const id = this.#sendFiles(request, smallestBudget(timeoutMs, this.#deadline.commandTimeoutMs), location);
|
|
300
|
+
const answered = new Promise((resolve) => this.#filesRequests.set(id, resolve));
|
|
301
|
+
started(action).then(async () => {
|
|
302
|
+
const answer = await answered;
|
|
303
|
+
if (!answer.ok)
|
|
304
|
+
return operation.reject(this.fail(withLocation(answer.failure, location)));
|
|
305
|
+
try {
|
|
306
|
+
operation.resolve(await wrap(answer));
|
|
307
|
+
}
|
|
308
|
+
catch (error) {
|
|
309
|
+
operation.reject(error);
|
|
310
|
+
}
|
|
311
|
+
}, (error) => {
|
|
312
|
+
this.#filesRequests.delete(id);
|
|
313
|
+
this.#sendFiles({ kind: 'release', request: id }, 1, location);
|
|
314
|
+
operation.reject(error);
|
|
315
|
+
});
|
|
316
|
+
return operation;
|
|
317
|
+
}
|
|
318
|
+
resolveFiles(id, answer) {
|
|
319
|
+
const resolve = this.#filesRequests.get(id);
|
|
320
|
+
if (resolve === undefined)
|
|
321
|
+
return;
|
|
322
|
+
this.#filesRequests.delete(id);
|
|
323
|
+
resolve(answer);
|
|
324
|
+
}
|
|
325
|
+
/**
|
|
326
|
+
* Asks the parent to change an app's routes, and resolves once the page holds the change, so the test's next command
|
|
327
|
+
* to the page meets it. It needs the app to itself, as an action does: a request already on its way when the routes
|
|
328
|
+
* change could meet either. Its time is the action budget, cut to what the test has left. It changes what the page's
|
|
329
|
+
* requests get, so it may not run inside the function `expect.poll` calls.
|
|
330
|
+
*/
|
|
331
|
+
changeRoutes({ app, label, request, location }) {
|
|
332
|
+
const work = { label, location };
|
|
333
|
+
const operation = this.#track('read', work);
|
|
334
|
+
const refusal = this.#refusal() ?? this.#whileReading(work) ?? this.#clash(app, work, 'action');
|
|
335
|
+
if (refusal !== undefined) {
|
|
336
|
+
operation.reject(refusal);
|
|
337
|
+
return operation;
|
|
338
|
+
}
|
|
339
|
+
this.#lanes.startAction(app, work);
|
|
340
|
+
const id = this.#options.nextCommandId();
|
|
341
|
+
const stepId = currentScope()?.stepId;
|
|
342
|
+
this.#routeChanges.set(id, (answer) => {
|
|
343
|
+
this.#lanes.endAction(app, work);
|
|
344
|
+
if (answer.ok)
|
|
345
|
+
operation.resolve();
|
|
346
|
+
else
|
|
347
|
+
operation.reject(this.fail(withLocation(answer.failure, location)));
|
|
348
|
+
});
|
|
349
|
+
const timeoutMs = this.assertionBudget(this.timeouts.action);
|
|
350
|
+
this.#options.send({ type: 'route', testId: this.testId, attemptId: this.attemptId, id, app, request, timeoutMs, ...(location === undefined ? {} : { location }), ...(stepId === undefined ? {} : { stepId }) });
|
|
351
|
+
return operation;
|
|
352
|
+
}
|
|
353
|
+
resolveRoute(id, answer) {
|
|
354
|
+
const resolve = this.#routeChanges.get(id);
|
|
355
|
+
if (resolve === undefined)
|
|
356
|
+
return;
|
|
357
|
+
this.#routeChanges.delete(id);
|
|
358
|
+
resolve(answer);
|
|
359
|
+
}
|
|
360
|
+
/**
|
|
361
|
+
* The folder a path a test wrote is read against, as an import's is: that of the file the call came from, or the
|
|
362
|
+
* test's own file when the call's place is unknown.
|
|
363
|
+
*/
|
|
364
|
+
callerFolder(location) {
|
|
365
|
+
return dirname(join(this.#options.rootDir, location?.file ?? this.#options.file));
|
|
366
|
+
}
|
|
367
|
+
#sendFiles(request, timeoutMs, location) {
|
|
368
|
+
const id = this.#options.nextCommandId();
|
|
369
|
+
const stepId = currentScope()?.stepId;
|
|
370
|
+
this.#options.send({ type: 'files', testId: this.testId, attemptId: this.attemptId, id, request, timeoutMs, ...(location === undefined ? {} : { location }), ...(stepId === undefined ? {} : { stepId }) });
|
|
371
|
+
return id;
|
|
372
|
+
}
|
|
125
373
|
resolveEvaluation(id, answer) {
|
|
126
374
|
const resolve = this.#evaluations.get(id);
|
|
127
375
|
if (resolve === undefined)
|
|
@@ -201,6 +449,27 @@ export class TestRun {
|
|
|
201
449
|
return Promise.resolve({ ok: false, failure: refusal.failure });
|
|
202
450
|
return this.#send(app, { kind: 'observePage', ...(after === undefined ? {} : { after }), check: true }, { timeoutMs, location });
|
|
203
451
|
}
|
|
452
|
+
/**
|
|
453
|
+
* Measures an app's page once for a layout assertion: the elements `request` names, and their words when it asks. With
|
|
454
|
+
* `after`, the page first waits for its next change. The look is marked as a check's, as `observe` marks its own.
|
|
455
|
+
*/
|
|
456
|
+
observeLayout(app, request, timeoutMs, location, after) {
|
|
457
|
+
const refusal = this.#refusal();
|
|
458
|
+
if (refusal !== undefined)
|
|
459
|
+
return Promise.resolve({ ok: false, failure: refusal.failure });
|
|
460
|
+
return this.#send(app, { kind: 'observeLayout', ...request, ...(after === undefined ? {} : { after }), check: true }, { timeoutMs, location });
|
|
461
|
+
}
|
|
462
|
+
/**
|
|
463
|
+
* Takes a picture of an app's page, or of one element, for a screenshot assertion, and learns its size and how it
|
|
464
|
+
* stands against its baseline; the pixels stay with the parent. `previous` names the look before it in the same check,
|
|
465
|
+
* whose picture this one must match to have settled. The look is marked as a check's, as `observe` marks its own.
|
|
466
|
+
*/
|
|
467
|
+
observeScreenshot(app, request, previous, timeoutMs, location) {
|
|
468
|
+
const refusal = this.#refusal();
|
|
469
|
+
if (refusal !== undefined)
|
|
470
|
+
return Promise.resolve({ ok: false, failure: refusal.failure });
|
|
471
|
+
return this.#send(app, { kind: 'observeScreenshot', ...request, ...(previous === undefined ? {} : { previous }), check: true }, { timeoutMs, location });
|
|
472
|
+
}
|
|
204
473
|
/**
|
|
205
474
|
* Reads an app's page once outside any check, its address and title, as `page.url()` and `page.title()` do inside
|
|
206
475
|
* `read`. No assertion follows such a look, so it is not marked as a check's.
|
|
@@ -291,6 +560,8 @@ export class TestRun {
|
|
|
291
560
|
await yieldToEventLoop();
|
|
292
561
|
if (ending.kind === 'threw')
|
|
293
562
|
this.recordThrown(ending.error);
|
|
563
|
+
for (const problem of this.#dialogsLeftOpen(what))
|
|
564
|
+
this.record(problem);
|
|
294
565
|
for (const problem of this.#unfinishedWork(what))
|
|
295
566
|
this.record(problem);
|
|
296
567
|
return ending;
|
|
@@ -400,6 +671,15 @@ export class TestRun {
|
|
|
400
671
|
#isRecorded(error) {
|
|
401
672
|
return error instanceof RetestError && this.#failures.includes(error.failure);
|
|
402
673
|
}
|
|
674
|
+
// A dialog the test was given and never answered holds its page, and the action that opened it cannot finish.
|
|
675
|
+
#dialogsLeftOpen(what) {
|
|
676
|
+
const open = [...this.#dialogsOpen.values()];
|
|
677
|
+
this.#dialogsOpen.clear();
|
|
678
|
+
return open.map(({ type, location }) => {
|
|
679
|
+
const message = `The ${type} dialog page.dialog() gave on ${this.describeLine(location)} was still open when ${what} returned. Answer it with dialog.accept() or dialog.dismiss().`;
|
|
680
|
+
return failure('not_awaited', message, location);
|
|
681
|
+
});
|
|
682
|
+
}
|
|
403
683
|
// Judges the work created since the last function returned, then forgets it.
|
|
404
684
|
#unfinishedWork(what) {
|
|
405
685
|
const tracked = this.#tracked;
|
|
@@ -431,10 +711,23 @@ function calledMethod(command) {
|
|
|
431
711
|
return `keyboard.${command.operation}`;
|
|
432
712
|
case 'nativeAlert':
|
|
433
713
|
return `alert.${command.operation}`;
|
|
714
|
+
case 'setChooserFiles':
|
|
715
|
+
return 'setFiles';
|
|
434
716
|
default:
|
|
435
717
|
return command.kind;
|
|
436
718
|
}
|
|
437
719
|
}
|
|
720
|
+
// A function the test passed, started at once; what it throws as it starts is its failure, as what it rejects with is.
|
|
721
|
+
function started(action) {
|
|
722
|
+
if (action === undefined)
|
|
723
|
+
return Promise.resolve();
|
|
724
|
+
try {
|
|
725
|
+
return Promise.resolve(action());
|
|
726
|
+
}
|
|
727
|
+
catch (error) {
|
|
728
|
+
return Promise.reject(error);
|
|
729
|
+
}
|
|
730
|
+
}
|
|
438
731
|
function lineOrNull(location) {
|
|
439
732
|
return location === undefined ? null : formatLine(location);
|
|
440
733
|
}
|
|
@@ -18,6 +18,14 @@ declare const misplaced: {
|
|
|
18
18
|
readonly toHaveValue: "toHaveValue is for locators. Use toBe on a value.";
|
|
19
19
|
readonly toHaveURL: "toHaveURL is for a page. Use toBe on a value.";
|
|
20
20
|
readonly toHaveTitle: "toHaveTitle is for a page. Use toBe on a value.";
|
|
21
|
+
readonly toOverlap: "toOverlap is for locators. Use toBe on a value.";
|
|
22
|
+
readonly toOverflowViewport: "toOverflowViewport is for locators. Use toBe on a value.";
|
|
23
|
+
readonly toHaveClippedText: "toHaveClippedText is for locators. Use toBe on a value.";
|
|
24
|
+
readonly toScrollHorizontally: "toScrollHorizontally is for a page. Use toBe on a value.";
|
|
25
|
+
readonly layout: "Layout matchers measure a web page. A native app has no page layout to measure.";
|
|
26
|
+
readonly toHaveScreenshot: "toHaveScreenshot is for locators and pages. Use toEqual on a value.";
|
|
27
|
+
readonly screenshotNot: "toHaveScreenshot has no .not. Save a baseline of the picture you expect instead.";
|
|
28
|
+
readonly screenshotNative: "toHaveScreenshot compares web pages. Retest compares no picture of a native app yet.";
|
|
21
29
|
readonly not: ".not is for locator and page matchers. Write the value matcher that says what you expect.";
|
|
22
30
|
readonly twice: ".not is written once.";
|
|
23
31
|
};
|
|
@@ -29,6 +37,18 @@ type Misplaced = typeof misplaced;
|
|
|
29
37
|
export type AssertionOptions = {
|
|
30
38
|
readonly timeout?: number | undefined;
|
|
31
39
|
};
|
|
40
|
+
/**
|
|
41
|
+
* `toHaveScreenshot`'s options. `threshold` is the colour distance, from 0 to 1, above which a pixel counts as
|
|
42
|
+
* different: 0.2 when left out. `maxDiffPixels` is how many pixels may differ, and `maxDiffPixelRatio` what part of
|
|
43
|
+
* them, from 0 to 1; with both, each must hold, and with neither, no pixel may differ. `timeout` shortens the assertion
|
|
44
|
+
* budget for the call, in milliseconds, and never lengthens it.
|
|
45
|
+
*/
|
|
46
|
+
export type ScreenshotOptions = {
|
|
47
|
+
readonly threshold?: number | undefined;
|
|
48
|
+
readonly maxDiffPixels?: number | undefined;
|
|
49
|
+
readonly maxDiffPixelRatio?: number | undefined;
|
|
50
|
+
readonly timeout?: number | undefined;
|
|
51
|
+
};
|
|
32
52
|
/** A locator's matchers, as they are and after `.not`. Each looks at the page again until it passes or time runs out. */
|
|
33
53
|
export interface LocatorMatchers {
|
|
34
54
|
/**
|
|
@@ -97,8 +117,38 @@ export interface LocatorMatchers {
|
|
|
97
117
|
readonly toContain: RetestTypeError<Misplaced['toContain']>;
|
|
98
118
|
readonly toMatch: RetestTypeError<Misplaced['toMatch']>;
|
|
99
119
|
}
|
|
120
|
+
/**
|
|
121
|
+
* A locator's layout matchers, as they are and after `.not`. Each names a layout problem and passes while the page
|
|
122
|
+
* shows it, so `.not` passes once it is gone. Each measures the page again until it passes or time runs out, needs
|
|
123
|
+
* exactly one element for each locator, and passes neither way while an element is not shown.
|
|
124
|
+
*/
|
|
125
|
+
export interface LayoutMatchers {
|
|
126
|
+
/**
|
|
127
|
+
* Waits until exactly one element matches each locator and their visible boxes share more than 4 pixels both across
|
|
128
|
+
* and down. A control inside a field never overlaps it, and an element never overlaps one it holds. Negated, it
|
|
129
|
+
* passes once they share no more than that.
|
|
130
|
+
*
|
|
131
|
+
* @example await expect(page.getByRole('button', { name: 'Save' })).not.toOverlap(page.getByRole('link', { name: 'Help' }))
|
|
132
|
+
*/
|
|
133
|
+
toOverlap(other: Locator, options?: AssertionOptions): Promise<void>;
|
|
134
|
+
/**
|
|
135
|
+
* Waits until exactly one element matches and the visible part of it ends more than 1 pixel past the right edge of
|
|
136
|
+
* the viewport, its width without the scrollbar. Negated, it passes once the element ends no further than that.
|
|
137
|
+
*
|
|
138
|
+
* @example await expect(page.getByTestId('price')).not.toOverflowViewport()
|
|
139
|
+
*/
|
|
140
|
+
toOverflowViewport(options?: AssertionOptions): Promise<void>;
|
|
141
|
+
/**
|
|
142
|
+
* Waits until exactly one element matches and a container that hides its overflow cuts off more than 4 pixels of
|
|
143
|
+
* its words or the words of an element inside it. Text shortened on purpose, with an ellipsis or a line clamp, is
|
|
144
|
+
* not cut off. Negated, it passes once no more than that is cut off.
|
|
145
|
+
*
|
|
146
|
+
* @example await expect(page.getByRole('heading')).not.toHaveClippedText()
|
|
147
|
+
*/
|
|
148
|
+
toHaveClippedText(options?: AssertionOptions): Promise<void>;
|
|
149
|
+
}
|
|
100
150
|
/** Matchers for a locator. They look at the page again until they pass or time runs out, so await them. */
|
|
101
|
-
export interface LocatorAssertions extends LocatorMatchers {
|
|
151
|
+
export interface LocatorAssertions extends LocatorMatchers, LayoutMatchers {
|
|
102
152
|
/**
|
|
103
153
|
* The same matchers, each passing only on a look that shows the opposite. A missing element passes only
|
|
104
154
|
* `.not.toBeVisible()`, `.not.toHaveCount()` and `.not.toHaveText([...])`.
|
|
@@ -106,18 +156,36 @@ export interface LocatorAssertions extends LocatorMatchers {
|
|
|
106
156
|
* @example await expect(page.getByRole('dialog')).not.toBeVisible()
|
|
107
157
|
*/
|
|
108
158
|
readonly not: NegatedLocatorAssertions;
|
|
159
|
+
/**
|
|
160
|
+
* Takes pictures of the one element that matches, clipped to its box, at growing waits from 100 ms, until two in a
|
|
161
|
+
* row are the same and the last matches the baseline `name` beside the test file, pixel by pixel, or time runs out.
|
|
162
|
+
* The element must be shown and inside the viewport. No pixel may differ unless the options allow it. A missing
|
|
163
|
+
* baseline fails the check; run with `--update-screenshots` to write it.
|
|
164
|
+
*
|
|
165
|
+
* @example await expect(page.getByTestId('chart')).toHaveScreenshot('chart', { maxDiffPixels: 50 })
|
|
166
|
+
*/
|
|
167
|
+
toHaveScreenshot(name: string, options?: ScreenshotOptions): Promise<void>;
|
|
109
168
|
}
|
|
110
169
|
/** A locator's matchers after `.not`. */
|
|
111
170
|
export interface NativeLocatorAssertions extends LocatorMatchers {
|
|
112
171
|
toBeSelected(options?: AssertionOptions): Promise<void>;
|
|
172
|
+
readonly toOverlap: RetestTypeError<Misplaced['layout']>;
|
|
173
|
+
readonly toOverflowViewport: RetestTypeError<Misplaced['layout']>;
|
|
174
|
+
readonly toHaveClippedText: RetestTypeError<Misplaced['layout']>;
|
|
113
175
|
readonly not: NativeNegatedLocatorAssertions;
|
|
176
|
+
readonly toHaveScreenshot: RetestTypeError<Misplaced['screenshotNative']>;
|
|
114
177
|
}
|
|
115
178
|
export interface NativeNegatedLocatorAssertions extends LocatorMatchers {
|
|
116
179
|
toBeSelected(options?: AssertionOptions): Promise<void>;
|
|
180
|
+
readonly toOverlap: RetestTypeError<Misplaced['layout']>;
|
|
181
|
+
readonly toOverflowViewport: RetestTypeError<Misplaced['layout']>;
|
|
182
|
+
readonly toHaveClippedText: RetestTypeError<Misplaced['layout']>;
|
|
117
183
|
readonly not: RetestTypeError<Misplaced['twice']>;
|
|
184
|
+
readonly toHaveScreenshot: RetestTypeError<Misplaced['screenshotNative']>;
|
|
118
185
|
}
|
|
119
|
-
export interface NegatedLocatorAssertions extends LocatorMatchers {
|
|
186
|
+
export interface NegatedLocatorAssertions extends LocatorMatchers, LayoutMatchers {
|
|
120
187
|
readonly not: RetestTypeError<Misplaced['twice']>;
|
|
188
|
+
readonly toHaveScreenshot: RetestTypeError<Misplaced['screenshotNot']>;
|
|
121
189
|
}
|
|
122
190
|
/** A page's matchers, as they are and after `.not`. Each looks at the page again until it passes or time runs out. */
|
|
123
191
|
export interface PageMatchers {
|
|
@@ -135,6 +203,13 @@ export interface PageMatchers {
|
|
|
135
203
|
* @example await expect(page).toHaveTitle('Tasks')
|
|
136
204
|
*/
|
|
137
205
|
toHaveTitle(title: string | RegExp, options?: AssertionOptions): Promise<void>;
|
|
206
|
+
/**
|
|
207
|
+
* Waits until the page scrolls sideways: the document is more than 1 pixel wider than the viewport without its
|
|
208
|
+
* scrollbar, and the page does not hide what runs past it. Negated, it passes once the page does not.
|
|
209
|
+
*
|
|
210
|
+
* @example await expect(page).not.toScrollHorizontally()
|
|
211
|
+
*/
|
|
212
|
+
toScrollHorizontally(options?: AssertionOptions): Promise<void>;
|
|
138
213
|
readonly toBe: RetestTypeError<Misplaced['toBe']>;
|
|
139
214
|
readonly toEqual: RetestTypeError<Misplaced['toEqual']>;
|
|
140
215
|
}
|
|
@@ -146,10 +221,19 @@ export interface PageAssertions extends PageMatchers {
|
|
|
146
221
|
* @example await expect(page).not.toHaveURL('/login')
|
|
147
222
|
*/
|
|
148
223
|
readonly not: NegatedPageAssertions;
|
|
224
|
+
/**
|
|
225
|
+
* Takes pictures of the page's viewport, at growing waits from 100 ms, until two in a row are the same and the last
|
|
226
|
+
* matches the baseline `name` beside the test file, pixel by pixel, or time runs out. No pixel may differ unless the
|
|
227
|
+
* options allow it. A missing baseline fails the check; run with `--update-screenshots` to write it.
|
|
228
|
+
*
|
|
229
|
+
* @example await expect(page).toHaveScreenshot('dashboard')
|
|
230
|
+
*/
|
|
231
|
+
toHaveScreenshot(name: string, options?: ScreenshotOptions): Promise<void>;
|
|
149
232
|
}
|
|
150
233
|
/** A page's matchers after `.not`. */
|
|
151
234
|
export interface NegatedPageAssertions extends PageMatchers {
|
|
152
235
|
readonly not: RetestTypeError<Misplaced['twice']>;
|
|
236
|
+
readonly toHaveScreenshot: RetestTypeError<Misplaced['screenshotNot']>;
|
|
153
237
|
}
|
|
154
238
|
/** Matchers that compare a value. `Result` is `void` for `expect`, and a promise for `expect.poll`. */
|
|
155
239
|
export interface ValueMatchers<Actual, Result> {
|
|
@@ -193,6 +277,11 @@ export interface ValueAssertions<Actual> extends ValueMatchers<Actual, void> {
|
|
|
193
277
|
readonly toHaveValue: RetestTypeError<Misplaced['toHaveValue']>;
|
|
194
278
|
readonly toHaveURL: RetestTypeError<Misplaced['toHaveURL']>;
|
|
195
279
|
readonly toHaveTitle: RetestTypeError<Misplaced['toHaveTitle']>;
|
|
280
|
+
readonly toOverlap: RetestTypeError<Misplaced['toOverlap']>;
|
|
281
|
+
readonly toOverflowViewport: RetestTypeError<Misplaced['toOverflowViewport']>;
|
|
282
|
+
readonly toHaveClippedText: RetestTypeError<Misplaced['toHaveClippedText']>;
|
|
283
|
+
readonly toScrollHorizontally: RetestTypeError<Misplaced['toScrollHorizontally']>;
|
|
284
|
+
readonly toHaveScreenshot: RetestTypeError<Misplaced['toHaveScreenshot']>;
|
|
196
285
|
readonly not: RetestTypeError<Misplaced['not']>;
|
|
197
286
|
}
|
|
198
287
|
/** Matchers for `expect.poll`. Each calls the function again until its value passes, so await them. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"expect.d.ts","sourceRoot":"","sources":["../../src/assertions/expect.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,OAAO,EAAE,aAAa,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAA;AAChF,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAA;
|
|
1
|
+
{"version":3,"file":"expect.d.ts","sourceRoot":"","sources":["../../src/assertions/expect.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,OAAO,EAAE,aAAa,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAA;AAChF,OAAO,KAAK,EAAE,eAAe,EAAE,M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