@unframework.dev/testing 0.0.0-stage → 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 +536 -2
- package/dist/browser/axe.js +34 -0
- package/dist/browser/behaviour.js +59 -0
- package/dist/browser/capabilities.js +58 -0
- package/dist/browser/clock.d.ts +17 -0
- package/dist/browser/clock.js +69 -0
- package/dist/browser/console.d.ts +27 -0
- package/dist/browser/console.js +142 -0
- package/dist/browser/determinism.js +108 -0
- package/dist/browser/element-timeout.js +28 -0
- package/dist/browser/events.js +68 -0
- package/dist/browser/geometry.js +135 -0
- package/dist/browser/keys.js +62 -0
- package/dist/browser/matchers.d.ts +39 -0
- package/dist/browser/matchers.js +78 -0
- package/dist/browser/navigation.js +38 -0
- package/dist/browser/parity.d.ts +10 -0
- package/dist/browser/parity.js +93 -0
- package/dist/browser/spec.d.ts +25 -0
- package/dist/browser/spec.js +38 -0
- package/dist/browser/target.d.ts +16 -0
- package/dist/browser/target.js +27 -0
- package/dist/browser/text-runs.js +68 -0
- package/dist/browser/thrown.js +71 -0
- package/dist/browser/trace.d.ts +21 -0
- package/dist/browser/trace.js +73 -0
- package/dist/browser/user.d.ts +45 -0
- package/dist/browser/user.js +184 -0
- package/dist/browser/view.d.ts +114 -0
- package/dist/browser/view.js +282 -0
- package/dist/browser/visual.d.ts +20 -0
- package/dist/browser/visual.js +36 -0
- package/dist/cli.d.ts +23 -0
- package/dist/cli.js +90 -0
- package/dist/commands.d.ts +107 -0
- package/dist/config/broadcast.js +29 -0
- package/dist/config/cases.d.ts +28 -0
- package/dist/config/cases.js +94 -0
- package/dist/config/index.d.ts +82 -0
- package/dist/config/index.js +295 -0
- package/dist/config/project-vite.d.ts +40 -0
- package/dist/config/project-vite.js +152 -0
- package/dist/diff.d.ts +14 -0
- package/dist/diff.js +92 -0
- package/dist/dom/serialize.js +236 -0
- package/dist/errors.d.ts +13 -0
- package/dist/errors.js +38 -0
- package/dist/harness.d.ts +189 -0
- package/dist/harness.js +53 -0
- package/dist/index.d.ts +16 -0
- package/dist/index.js +12 -0
- package/dist/internal.d.ts +8 -0
- package/dist/internal.js +6 -0
- package/dist/layers.d.ts +183 -0
- package/dist/layers.js +241 -0
- package/dist/node/browser.d.ts +33 -0
- package/dist/node/browser.js +64 -0
- package/dist/node/commands.d.ts +137 -0
- package/dist/node/commands.js +139 -0
- package/dist/node/context.d.ts +28 -0
- package/dist/node/context.js +55 -0
- package/dist/node/events.d.ts +25 -0
- package/dist/node/events.js +50 -0
- package/dist/node/finished.d.ts +12 -0
- package/dist/node/finished.js +28 -0
- package/dist/node/index.d.ts +21 -0
- package/dist/node/index.js +20 -0
- package/dist/node/matrix.d.ts +219 -0
- package/dist/node/matrix.js +309 -0
- package/dist/node/mode.d.ts +103 -0
- package/dist/node/mode.js +204 -0
- package/dist/node/names.d.ts +4 -0
- package/dist/node/names.js +5 -0
- package/dist/node/policy.d.ts +44 -0
- package/dist/node/policy.js +140 -0
- package/dist/node/reporter.d.ts +101 -0
- package/dist/node/reporter.js +251 -0
- package/dist/node/summary.d.ts +99 -0
- package/dist/node/summary.js +352 -0
- package/dist/node/thrown.js +78 -0
- package/dist/node/viewport.d.ts +7 -0
- package/dist/node/viewport.js +8 -0
- package/dist/node/visual.d.ts +85 -0
- package/dist/node/visual.js +373 -0
- package/dist/node_modules/.pnpm/playwright-core@1.63.0/node_modules/playwright-core/types/protocol.d.ts +23930 -0
- package/dist/node_modules/.pnpm/playwright-core@1.63.0/node_modules/playwright-core/types/structs.d.ts +22 -0
- package/dist/node_modules/.pnpm/playwright-core@1.63.0/node_modules/playwright-core/types/types.d.ts +22221 -0
- package/dist/normalize/display.js +309 -0
- package/dist/normalize/index.d.ts +34 -0
- package/dist/normalize/index.js +38 -0
- package/dist/normalize/pipeline.d.ts +19 -0
- package/dist/normalize/pipeline.js +45 -0
- package/dist/normalize/print.js +103 -0
- package/dist/normalize/rules/angular-hosts.js +53 -0
- package/dist/normalize/rules/aria-hosts.js +48 -0
- package/dist/normalize/rules/comments.js +16 -0
- package/dist/normalize/rules/control-values.js +65 -0
- package/dist/normalize/rules/engine-aliases.js +34 -0
- package/dist/normalize/rules/framework-attributes.js +85 -0
- package/dist/normalize/rules/generated-ids.js +64 -0
- package/dist/normalize/rules/ordering.js +39 -0
- package/dist/normalize/rules/qwik-styles.js +21 -0
- package/dist/normalize/rules/qwik-templates.js +20 -0
- package/dist/normalize/rules/values.js +125 -0
- package/dist/normalize/rules/whitespace.js +381 -0
- package/dist/normalize/style.js +121 -0
- package/dist/normalize/targets.d.ts +8 -0
- package/dist/normalize/targets.js +17 -0
- package/dist/normalize/tree.d.ts +1 -0
- package/dist/normalize/tree.js +151 -0
- package/dist/setup.d.ts +1 -0
- package/dist/setup.js +149 -0
- package/dist/ssr/index.d.ts +10 -0
- package/dist/ssr/index.js +103 -0
- package/dist/ssr/spec.d.ts +1 -0
- package/dist/ssr/spec.js +7 -0
- package/dist/targets/angular.d.ts +1 -0
- package/dist/targets/angular.js +5 -0
- package/dist/targets/astro.d.ts +1 -0
- package/dist/targets/astro.js +5 -0
- package/dist/targets/qwik.d.ts +1 -0
- package/dist/targets/qwik.js +5 -0
- package/dist/targets/react.d.ts +1 -0
- package/dist/targets/react.js +5 -0
- package/dist/targets/solid.d.ts +1 -0
- package/dist/targets/solid.js +5 -0
- package/dist/targets/svelte.d.ts +1 -0
- package/dist/targets/svelte.js +5 -0
- package/dist/targets/vue.d.ts +1 -0
- package/dist/targets/vue.js +5 -0
- package/dist/visual-types.d.ts +92 -0
- package/dist/visual-types.js +24 -0
- package/package.json +146 -3
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
import { ColorScheme } from "../harness.js";
|
|
2
|
+
import { ArtefactRequest, ArtefactResult, ComponentEventsRequest, ComponentEventsResult, InputRequest, InputResult, SerializedLocatorLike } from "../commands.js";
|
|
3
|
+
import { CommandProject } from "./context.js";
|
|
4
|
+
import { ufSpecFinished } from "./finished.js";
|
|
5
|
+
import { ufVisualCapture } from "./visual.js";
|
|
6
|
+
//#region src/node/commands.d.ts
|
|
7
|
+
/**
|
|
8
|
+
* `ufArtefact`: settles a shared expectation the browser computed (L7, L9). Contents of `null`
|
|
9
|
+
* say the scenario has no such file: only a trace may be absent, when no step led to it.
|
|
10
|
+
*/
|
|
11
|
+
export declare function ufArtefact(context: CommandProject, request: ArtefactRequest): ArtefactResult;
|
|
12
|
+
/** What the ARIA and focus commands need from Vitest's command context (Playwright provider). */
|
|
13
|
+
export interface AriaCommandContext {
|
|
14
|
+
iframe: {
|
|
15
|
+
locator(selector: string): {
|
|
16
|
+
ariaSnapshot(): Promise<string>;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
/** `ufAriaSnapshot`: Playwright's ARIA snapshot of the element a locator points at (L7). */
|
|
21
|
+
export declare function ufAriaSnapshot(context: AriaCommandContext, locator: SerializedLocatorLike): Promise<string>;
|
|
22
|
+
/** What the focus command needs from Vitest's command context (Playwright provider). */
|
|
23
|
+
export interface FocusCommandContext {
|
|
24
|
+
iframe: {
|
|
25
|
+
locator(selector: string): {
|
|
26
|
+
focus(): Promise<void>;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* `ufFocus`: focuses the element a locator points at, as Playwright's `locator.focus()` does
|
|
32
|
+
* (`view.user.focus`), waiting for it within the action timeout. Vitest's `userEvent` has no
|
|
33
|
+
* focus action.
|
|
34
|
+
*/
|
|
35
|
+
export declare function ufFocus(context: FocusCommandContext, locator: SerializedLocatorLike): Promise<void>;
|
|
36
|
+
/** What the input command needs from Vitest's command context (Playwright provider). */
|
|
37
|
+
export interface InputContext {
|
|
38
|
+
page: {
|
|
39
|
+
mouse: {
|
|
40
|
+
down(options: {
|
|
41
|
+
clickCount: number;
|
|
42
|
+
}): Promise<void>;
|
|
43
|
+
up(options: {
|
|
44
|
+
clickCount: number;
|
|
45
|
+
}): Promise<void>;
|
|
46
|
+
wheel(deltaX: number, deltaY: number): Promise<void>;
|
|
47
|
+
};
|
|
48
|
+
keyboard: {
|
|
49
|
+
down(key: string): Promise<void>;
|
|
50
|
+
up(key: string): Promise<void>;
|
|
51
|
+
insertText(text: string): Promise<void>;
|
|
52
|
+
};
|
|
53
|
+
};
|
|
54
|
+
iframe: {
|
|
55
|
+
locator(selector: string): {
|
|
56
|
+
isEnabled(): Promise<boolean>;
|
|
57
|
+
hover(options: {
|
|
58
|
+
position?: {
|
|
59
|
+
x: number;
|
|
60
|
+
y: number;
|
|
61
|
+
};
|
|
62
|
+
}): Promise<void>;
|
|
63
|
+
};
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
* `ufInput`: dispatches one input of a `view.user` action, so the browser side can settle the
|
|
68
|
+
* page between two inputs, as the time between a person's would let it (ADR-0050). The move is
|
|
69
|
+
* Playwright's hover: it waits until the element is visible, stable and the one under the point,
|
|
70
|
+
* then moves the mouse to the point Playwright's click would press; a move before a click then
|
|
71
|
+
* refuses a disabled element, which that click would wait on until it timed out. The presses
|
|
72
|
+
* and releases happen where the mouse is, as in Playwright's click. A key is Playwright's
|
|
73
|
+
* keyboard's, and a character its US layout lacks is inserted as text with no key, as Vitest's
|
|
74
|
+
* `userEvent.keyboard` does: its release does nothing.
|
|
75
|
+
*/
|
|
76
|
+
export declare function ufInput(context: InputContext, request: InputRequest): Promise<InputResult>;
|
|
77
|
+
/** What the input reset needs from Vitest's command context (Playwright provider). */
|
|
78
|
+
export interface InputCommandContext {
|
|
79
|
+
page: {
|
|
80
|
+
mouse: {
|
|
81
|
+
move(x: number, y: number): Promise<void>;
|
|
82
|
+
};
|
|
83
|
+
};
|
|
84
|
+
frame(): Promise<{
|
|
85
|
+
frameElement(): Promise<{
|
|
86
|
+
boundingBox(): Promise<{
|
|
87
|
+
x: number;
|
|
88
|
+
y: number;
|
|
89
|
+
width: number;
|
|
90
|
+
height: number;
|
|
91
|
+
} | null>;
|
|
92
|
+
}>;
|
|
93
|
+
}>;
|
|
94
|
+
}
|
|
95
|
+
/**
|
|
96
|
+
* `ufResetInput`: moves the mouse to the bottom right corner of the tester frame, off every mount
|
|
97
|
+
* root (they sit at the top left), so the next test starts with nothing hovered. Vitest's
|
|
98
|
+
* `unhover` hovers the body's centre instead, which is inside any wide root. The browser side
|
|
99
|
+
* releases the keys and the focus (see `resetInput`).
|
|
100
|
+
*/
|
|
101
|
+
export declare function ufResetInput(context: InputCommandContext): Promise<void>;
|
|
102
|
+
/** What the colour-scheme command needs from Vitest's command context (Playwright provider). */
|
|
103
|
+
export interface ColorSchemeContext {
|
|
104
|
+
page: {
|
|
105
|
+
emulateMedia(options: {
|
|
106
|
+
colorScheme: ColorScheme;
|
|
107
|
+
}): Promise<void>;
|
|
108
|
+
};
|
|
109
|
+
}
|
|
110
|
+
/**
|
|
111
|
+
* `ufColorScheme`: emulates the `prefers-color-scheme` a case opts into (`case.json`'s
|
|
112
|
+
* `colorScheme`, ADR-0061) for the page its spec file runs in, before anything mounts. The setup
|
|
113
|
+
* file sets it for every spec file, `light` by default, so no file runs in the scheme of the file
|
|
114
|
+
* before it.
|
|
115
|
+
*/
|
|
116
|
+
export declare function ufColorScheme(context: ColorSchemeContext, scheme: ColorScheme): Promise<void>;
|
|
117
|
+
/**
|
|
118
|
+
* `ufComponentEvents`: the events the component of a case declares, from the project's own
|
|
119
|
+
* compile of the case's main `.uf.tsx` (`recordCompiledModule`), so a mount listens to exactly
|
|
120
|
+
* those (an undeclared `onX` would fall through to Vue's root as a native listener). The main
|
|
121
|
+
* source is the case's only one, or the one its `case.json` names (ADR-0057): the spec mounts
|
|
122
|
+
* it, and its children's events reach only it.
|
|
123
|
+
*/
|
|
124
|
+
export declare function ufComponentEvents(context: CommandProject, request: ComponentEventsRequest): ComponentEventsResult;
|
|
125
|
+
/** Every command the testing API needs, keyed by the name the browser calls. */
|
|
126
|
+
export declare const browserCommands: {
|
|
127
|
+
ufArtefact: typeof ufArtefact;
|
|
128
|
+
ufAriaSnapshot: typeof ufAriaSnapshot;
|
|
129
|
+
ufVisualCapture: typeof ufVisualCapture;
|
|
130
|
+
ufFocus: typeof ufFocus;
|
|
131
|
+
ufInput: typeof ufInput;
|
|
132
|
+
ufResetInput: typeof ufResetInput;
|
|
133
|
+
ufColorScheme: typeof ufColorScheme;
|
|
134
|
+
ufComponentEvents: typeof ufComponentEvents;
|
|
135
|
+
ufSpecFinished: typeof ufSpecFinished;
|
|
136
|
+
};
|
|
137
|
+
//#endregion
|
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
import { COLOR_SCHEMES } from "../harness.js";
|
|
2
|
+
import { caseDirectory, caseMainSource, projectHarness, sharedArtefactContext } from "./context.js";
|
|
3
|
+
import { compiledEvents } from "./events.js";
|
|
4
|
+
import { ufSpecFinished } from "./finished.js";
|
|
5
|
+
import { KEBAB_CASE } from "./names.js";
|
|
6
|
+
import { settleArtefact } from "./policy.js";
|
|
7
|
+
import { VIEWPORT } from "./viewport.js";
|
|
8
|
+
import { ufVisualCapture } from "./visual.js";
|
|
9
|
+
import { join } from "node:path";
|
|
10
|
+
//#region src/node/commands.ts
|
|
11
|
+
/**
|
|
12
|
+
* The shared expectations the browser may settle: `dom.<name>.html` and `aria.<name>.yaml` (L7)
|
|
13
|
+
* and `trace.<name>.json` (L9).
|
|
14
|
+
*/
|
|
15
|
+
const BROWSER_ARTEFACT = /^(?:dom\.(.*)\.html|aria\.(.*)\.yaml|trace\.(.*)\.json)$/;
|
|
16
|
+
/** Whether a file is a browser artefact of a scenario with a {@link KEBAB_CASE} name. */
|
|
17
|
+
function isBrowserArtefact(file) {
|
|
18
|
+
const match = BROWSER_ARTEFACT.exec(file);
|
|
19
|
+
const scenario = match?.[1] ?? match?.[2] ?? match?.[3];
|
|
20
|
+
return scenario !== void 0 && KEBAB_CASE.test(scenario);
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* `ufArtefact`: settles a shared expectation the browser computed (L7, L9). Contents of `null`
|
|
24
|
+
* say the scenario has no such file: only a trace may be absent, when no step led to it.
|
|
25
|
+
*/
|
|
26
|
+
function ufArtefact(context, request) {
|
|
27
|
+
const { target, harness } = projectHarness(context);
|
|
28
|
+
if (!isBrowserArtefact(request.file)) throw new Error(`[uf] "${request.file}" is not a browser artefact (dom.<name>.html, aria.<name>.yaml, trace.<name>.json).`);
|
|
29
|
+
if (request.contents === null && !request.file.startsWith("trace.")) throw new Error(`[uf] "${request.file}" always has contents: only a trace may be absent.`);
|
|
30
|
+
const path = join(caseDirectory(harness, request.case), "__expected__", request.file);
|
|
31
|
+
const outcome = settleArtefact(path, request.contents ?? void 0, sharedArtefactContext(harness, target, request.case));
|
|
32
|
+
return {
|
|
33
|
+
pass: outcome.pass,
|
|
34
|
+
status: outcome.status,
|
|
35
|
+
message: outcome.message
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
/** `ufAriaSnapshot`: Playwright's ARIA snapshot of the element a locator points at (L7). */
|
|
39
|
+
function ufAriaSnapshot(context, locator) {
|
|
40
|
+
return context.iframe.locator(locator.selector).ariaSnapshot();
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* `ufFocus`: focuses the element a locator points at, as Playwright's `locator.focus()` does
|
|
44
|
+
* (`view.user.focus`), waiting for it within the action timeout. Vitest's `userEvent` has no
|
|
45
|
+
* focus action.
|
|
46
|
+
*/
|
|
47
|
+
function ufFocus(context, locator) {
|
|
48
|
+
return context.iframe.locator(locator.selector).focus();
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* `ufInput`: dispatches one input of a `view.user` action, so the browser side can settle the
|
|
52
|
+
* page between two inputs, as the time between a person's would let it (ADR-0050). The move is
|
|
53
|
+
* Playwright's hover: it waits until the element is visible, stable and the one under the point,
|
|
54
|
+
* then moves the mouse to the point Playwright's click would press; a move before a click then
|
|
55
|
+
* refuses a disabled element, which that click would wait on until it timed out. The presses
|
|
56
|
+
* and releases happen where the mouse is, as in Playwright's click. A key is Playwright's
|
|
57
|
+
* keyboard's, and a character its US layout lacks is inserted as text with no key, as Vitest's
|
|
58
|
+
* `userEvent.keyboard` does: its release does nothing.
|
|
59
|
+
*/
|
|
60
|
+
async function ufInput(context, request) {
|
|
61
|
+
const { mouse, keyboard } = context.page;
|
|
62
|
+
switch (request.kind) {
|
|
63
|
+
case "move": {
|
|
64
|
+
const target = context.iframe.locator(request.locator.selector);
|
|
65
|
+
await target.hover(request.position ? { position: request.position } : {});
|
|
66
|
+
if (request.check === "click" && !await target.isEnabled()) throw new Error(`${request.locator.locator} is disabled: a click on it would do nothing. Click it once it is enabled.`);
|
|
67
|
+
return { inserted: false };
|
|
68
|
+
}
|
|
69
|
+
case "press":
|
|
70
|
+
await mouse.down({ clickCount: request.clickCount });
|
|
71
|
+
return { inserted: false };
|
|
72
|
+
case "release":
|
|
73
|
+
await mouse.up({ clickCount: request.clickCount });
|
|
74
|
+
return { inserted: false };
|
|
75
|
+
case "wheel":
|
|
76
|
+
await mouse.wheel(request.deltaX, request.deltaY);
|
|
77
|
+
return { inserted: false };
|
|
78
|
+
case "keydown": try {
|
|
79
|
+
await keyboard.down(request.key);
|
|
80
|
+
return { inserted: false };
|
|
81
|
+
} catch (error) {
|
|
82
|
+
if (!request.text || !UNKNOWN_KEY.test(String(error))) throw error;
|
|
83
|
+
await keyboard.insertText(request.key);
|
|
84
|
+
return { inserted: true };
|
|
85
|
+
}
|
|
86
|
+
case "keyup":
|
|
87
|
+
await keyboard.up(request.key);
|
|
88
|
+
return { inserted: false };
|
|
89
|
+
default: throw new TypeError(`ufInput: no input is ${JSON.stringify(request)}.`);
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
/** Playwright's refusal of a key its keyboard layout does not have. */
|
|
93
|
+
const UNKNOWN_KEY = /Unknown key: /;
|
|
94
|
+
/**
|
|
95
|
+
* `ufResetInput`: moves the mouse to the bottom right corner of the tester frame, off every mount
|
|
96
|
+
* root (they sit at the top left), so the next test starts with nothing hovered. Vitest's
|
|
97
|
+
* `unhover` hovers the body's centre instead, which is inside any wide root. The browser side
|
|
98
|
+
* releases the keys and the focus (see `resetInput`).
|
|
99
|
+
*/
|
|
100
|
+
async function ufResetInput(context) {
|
|
101
|
+
const box = await (await (await context.frame()).frameElement()).boundingBox();
|
|
102
|
+
const { width, height } = box ?? VIEWPORT;
|
|
103
|
+
await context.page.mouse.move((box?.x ?? 0) + width - 1, (box?.y ?? 0) + height - 1);
|
|
104
|
+
}
|
|
105
|
+
/**
|
|
106
|
+
* `ufColorScheme`: emulates the `prefers-color-scheme` a case opts into (`case.json`'s
|
|
107
|
+
* `colorScheme`, ADR-0061) for the page its spec file runs in, before anything mounts. The setup
|
|
108
|
+
* file sets it for every spec file, `light` by default, so no file runs in the scheme of the file
|
|
109
|
+
* before it.
|
|
110
|
+
*/
|
|
111
|
+
async function ufColorScheme(context, scheme) {
|
|
112
|
+
if (!COLOR_SCHEMES.includes(scheme)) throw new TypeError(`ufColorScheme: ${JSON.stringify(scheme)} is not a colour scheme (${COLOR_SCHEMES.join(", ")}).`);
|
|
113
|
+
await context.page.emulateMedia({ colorScheme: scheme });
|
|
114
|
+
}
|
|
115
|
+
/**
|
|
116
|
+
* `ufComponentEvents`: the events the component of a case declares, from the project's own
|
|
117
|
+
* compile of the case's main `.uf.tsx` (`recordCompiledModule`), so a mount listens to exactly
|
|
118
|
+
* those (an undeclared `onX` would fall through to Vue's root as a native listener). The main
|
|
119
|
+
* source is the case's only one, or the one its `case.json` names (ADR-0057): the spec mounts
|
|
120
|
+
* it, and its children's events reach only it.
|
|
121
|
+
*/
|
|
122
|
+
function ufComponentEvents(context, request) {
|
|
123
|
+
const { target, harness } = projectHarness(context);
|
|
124
|
+
return { events: compiledEvents(caseMainSource(harness, request.case), target) };
|
|
125
|
+
}
|
|
126
|
+
/** Every command the testing API needs, keyed by the name the browser calls. */
|
|
127
|
+
const browserCommands = {
|
|
128
|
+
ufArtefact,
|
|
129
|
+
ufAriaSnapshot,
|
|
130
|
+
ufVisualCapture,
|
|
131
|
+
ufFocus,
|
|
132
|
+
ufInput,
|
|
133
|
+
ufResetInput,
|
|
134
|
+
ufColorScheme,
|
|
135
|
+
ufComponentEvents,
|
|
136
|
+
ufSpecFinished
|
|
137
|
+
};
|
|
138
|
+
//#endregion
|
|
139
|
+
export { browserCommands, ufAriaSnapshot, ufArtefact, ufColorScheme, ufComponentEvents, ufFocus, ufInput, ufResetInput };
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { HarnessContext } from "../harness.js";
|
|
2
|
+
import { ArtefactContext } from "./policy.js";
|
|
3
|
+
//#region src/node/context.d.ts
|
|
4
|
+
/** The part of Vitest's `BrowserCommandContext` the commands read. */
|
|
5
|
+
export interface CommandProject {
|
|
6
|
+
project: {
|
|
7
|
+
name: string;
|
|
8
|
+
getProvidedContext(): {
|
|
9
|
+
target?: string;
|
|
10
|
+
ufHarness?: HarnessContext;
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
/** The calling project's target and harness context; throws if the project does not provide them. */
|
|
15
|
+
export declare function projectHarness(context: CommandProject): {
|
|
16
|
+
target: string;
|
|
17
|
+
harness: HarnessContext;
|
|
18
|
+
};
|
|
19
|
+
/** The case directory of a case id, refusing ids that are not known cases. */
|
|
20
|
+
export declare function caseDirectory(harness: HarnessContext, id: string): string;
|
|
21
|
+
/** The directory artefact paths are shown relative to: the cases directory's parent. */
|
|
22
|
+
export declare function displayRoot(harness: HarnessContext): string;
|
|
23
|
+
/**
|
|
24
|
+
* How a target settles a case's artefacts every target shares (`__expected__/*`): the case's
|
|
25
|
+
* reference (ADR-0057) writes them in update mode, everyone else compares.
|
|
26
|
+
*/
|
|
27
|
+
export declare function sharedArtefactContext(harness: HarnessContext, target: string, caseId: string): ArtefactContext;
|
|
28
|
+
//#endregion
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { caseReference, isReference } from "../harness.js";
|
|
2
|
+
import { existsSync, readdirSync } from "node:fs";
|
|
3
|
+
import { dirname, join, resolve } from "node:path";
|
|
4
|
+
//#region src/node/context.ts
|
|
5
|
+
/** The calling project's target and harness context; throws if the project does not provide them. */
|
|
6
|
+
function projectHarness(context) {
|
|
7
|
+
const provided = context.project.getProvidedContext();
|
|
8
|
+
if (!provided.target || !provided.ufHarness) throw new Error(`[uf] Project "${context.project.name}" does not provide "target" and "ufHarness": the harness's browser commands only run in harness projects.`);
|
|
9
|
+
return {
|
|
10
|
+
target: provided.target,
|
|
11
|
+
harness: provided.ufHarness
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
/** The case directory of a case id, refusing ids that are not known cases. */
|
|
15
|
+
function caseDirectory(harness, id) {
|
|
16
|
+
if (!Object.hasOwn(harness.cases, id) || id.split("/").includes("..")) throw new Error(`[uf] Unknown case "${id}".`);
|
|
17
|
+
return join(harness.casesDir, id);
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* The main `.uf.tsx` source of a case (absolute): the one its `case.json`'s `main` names,
|
|
21
|
+
* relative to the case's directory and maybe outside it (ADR-0086), or else the directory's only
|
|
22
|
+
* `.uf.tsx`. A spec mounts it, and the server render renders it.
|
|
23
|
+
*/
|
|
24
|
+
function caseMainSource(harness, id) {
|
|
25
|
+
const directory = caseDirectory(harness, id);
|
|
26
|
+
const main = harness.cases[id]?.main;
|
|
27
|
+
if (main !== void 0) {
|
|
28
|
+
const source = resolve(directory, main);
|
|
29
|
+
if (!main.endsWith(".uf.tsx") || !existsSync(source)) throw new Error(`[uf] Case ${id} names ${main} as its main input, which it does not hold.`);
|
|
30
|
+
return source;
|
|
31
|
+
}
|
|
32
|
+
const sources = readdirSync(directory).filter((file) => file.endsWith(".uf.tsx"));
|
|
33
|
+
if (sources.length !== 1) throw new Error(`[uf] Case ${id} must hold one .uf.tsx input, or name its main one in case.json, to mount; found ${sources.length}.`);
|
|
34
|
+
return join(directory, sources[0]);
|
|
35
|
+
}
|
|
36
|
+
/** The directory artefact paths are shown relative to: the cases directory's parent. */
|
|
37
|
+
function displayRoot(harness) {
|
|
38
|
+
return dirname(harness.casesDir);
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* How a target settles a case's artefacts every target shares (`__expected__/*`): the case's
|
|
42
|
+
* reference (ADR-0057) writes them in update mode, everyone else compares.
|
|
43
|
+
*/
|
|
44
|
+
function sharedArtefactContext(harness, target, caseId) {
|
|
45
|
+
return {
|
|
46
|
+
role: isReference(harness, target, caseId) ? "reference" : "follower",
|
|
47
|
+
update: harness.update,
|
|
48
|
+
root: displayRoot(harness),
|
|
49
|
+
ledgerDir: harness.ledgerDir,
|
|
50
|
+
...harness.updateCommand === void 0 ? {} : { updateCommand: harness.updateCommand },
|
|
51
|
+
reference: caseReference(harness, caseId)
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
//#endregion
|
|
55
|
+
export { caseDirectory, caseMainSource, displayRoot, projectHarness, sharedArtefactContext };
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { UfModule } from "@unframework.dev/ir";
|
|
2
|
+
import { MountEvent } from "@unframework.dev/codegen";
|
|
3
|
+
//#region src/node/events.d.ts
|
|
4
|
+
/** A module a project compiled, as the unplugin's `onCompile` reports it. */
|
|
5
|
+
export interface CompiledModule {
|
|
6
|
+
/** The authored `.uf.tsx` file, absolute. */
|
|
7
|
+
file: string;
|
|
8
|
+
/** The target the project compiles to. */
|
|
9
|
+
target: string;
|
|
10
|
+
/** The compile's IR, or nothing when the module did not parse. */
|
|
11
|
+
ir?: UfModule | undefined;
|
|
12
|
+
}
|
|
13
|
+
/** Records the latest compile of a module for a target: the harness calls it from `onCompile`. */
|
|
14
|
+
export declare function recordCompiledModule(module: CompiledModule): void;
|
|
15
|
+
/**
|
|
16
|
+
* The events the component of a compiled module declares, in declaration order, each with the
|
|
17
|
+
* optional members of its payload. A module of several components must declare the same events
|
|
18
|
+
* in each: a case mounts one component, and cannot tell which of a module's it is. A test that
|
|
19
|
+
* composes components mounts a harness parent from a source of its own (ADR-0057). Throws
|
|
20
|
+
* when the module was never compiled for the target, or failed to.
|
|
21
|
+
*/
|
|
22
|
+
export declare function compiledEvents(file: string, target: string): MountEvent[];
|
|
23
|
+
/** The events a module's component declares (see {@link compiledEvents}). */
|
|
24
|
+
export declare function eventsOfModule(ir: UfModule, file?: string): MountEvent[];
|
|
25
|
+
//#endregion
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { realpathSync } from "node:fs";
|
|
2
|
+
//#region src/node/events.ts
|
|
3
|
+
/**
|
|
4
|
+
* One store per process, whatever copy of this module records or reads it: the config that
|
|
5
|
+
* builds the projects and the commands it registers may load it apart.
|
|
6
|
+
*/
|
|
7
|
+
const STORE = Symbol.for("@unframework.dev/testing:compiled-modules");
|
|
8
|
+
function store() {
|
|
9
|
+
const holder = globalThis;
|
|
10
|
+
return holder[STORE] ??= /* @__PURE__ */ new Map();
|
|
11
|
+
}
|
|
12
|
+
/** The key of a file's compile for a target: its real path, so links never split it. */
|
|
13
|
+
function keyOf(file, target) {
|
|
14
|
+
let path = file;
|
|
15
|
+
try {
|
|
16
|
+
path = realpathSync(file);
|
|
17
|
+
} catch {}
|
|
18
|
+
return `${target}\0${path}`;
|
|
19
|
+
}
|
|
20
|
+
/** Records the latest compile of a module for a target: the harness calls it from `onCompile`. */
|
|
21
|
+
function recordCompiledModule(module) {
|
|
22
|
+
store().set(keyOf(module.file, module.target), module.ir);
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* The events the component of a compiled module declares, in declaration order, each with the
|
|
26
|
+
* optional members of its payload. A module of several components must declare the same events
|
|
27
|
+
* in each: a case mounts one component, and cannot tell which of a module's it is. A test that
|
|
28
|
+
* composes components mounts a harness parent from a source of its own (ADR-0057). Throws
|
|
29
|
+
* when the module was never compiled for the target, or failed to.
|
|
30
|
+
*/
|
|
31
|
+
function compiledEvents(file, target) {
|
|
32
|
+
const key = keyOf(file, target);
|
|
33
|
+
const entries = store();
|
|
34
|
+
if (!entries.has(key)) throw new Error(`[uf] No ${target} compile of ${file} was recorded: the project's unplugin must report every compile to recordCompiledModule (its onCompile hook) before a spec mounts the component.`);
|
|
35
|
+
const ir = entries.get(key);
|
|
36
|
+
if (!ir) throw new Error(`[uf] The ${target} compile of ${file} produced no IR: it has nothing to mount.`);
|
|
37
|
+
return eventsOfModule(ir, file);
|
|
38
|
+
}
|
|
39
|
+
/** The events a module's component declares (see {@link compiledEvents}). */
|
|
40
|
+
function eventsOfModule(ir, file = ir.file) {
|
|
41
|
+
const lists = ir.components.map((component) => (component.emits?.events ?? []).map((event) => ({
|
|
42
|
+
name: event.name,
|
|
43
|
+
optional: event.parameters.map((parameter) => parameter.optional === true)
|
|
44
|
+
})));
|
|
45
|
+
const [first = [], ...rest] = lists;
|
|
46
|
+
if (rest.some((list) => JSON.stringify(list) !== JSON.stringify(first))) throw new Error(`[uf] ${file} holds ${lists.length} components that declare different events, and a case mounts one of them: a test cannot tell which one it mounts until components can be composed (M3).`);
|
|
47
|
+
return first;
|
|
48
|
+
}
|
|
49
|
+
//#endregion
|
|
50
|
+
export { compiledEvents, eventsOfModule, recordCompiledModule };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { SpecFinishedRequest } from "../commands.js";
|
|
2
|
+
import { CommandProject } from "./context.js";
|
|
3
|
+
//#region src/node/finished.d.ts
|
|
4
|
+
/**
|
|
5
|
+
* `ufSpecFinished`: records that the calling project finished a case's spec file. The setup
|
|
6
|
+
* file calls it from an `aroundAll` hook after the file's tests and its afterAll hooks, so it
|
|
7
|
+
* resolves before the file ends, and so before any later `sequence.groupOrder` group starts.
|
|
8
|
+
*/
|
|
9
|
+
export declare function ufSpecFinished(context: CommandProject, request: SpecFinishedRequest): void;
|
|
10
|
+
/** Whether a target's browser project finished a case's spec file in a run. */
|
|
11
|
+
export declare function specFinished(runId: string, target: string, caseId: string): boolean;
|
|
12
|
+
//#endregion
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { caseDirectory, projectHarness } from "./context.js";
|
|
2
|
+
//#region src/node/finished.ts
|
|
3
|
+
const STATE = Symbol.for("unframework.visual.finished");
|
|
4
|
+
/** Run id and target → the cases whose spec file that target's browser project finished. */
|
|
5
|
+
function finished() {
|
|
6
|
+
const store = globalThis;
|
|
7
|
+
return store[STATE] ??= /* @__PURE__ */ new Map();
|
|
8
|
+
}
|
|
9
|
+
const keyOf = (runId, target) => `${runId}:${target}`;
|
|
10
|
+
/**
|
|
11
|
+
* `ufSpecFinished`: records that the calling project finished a case's spec file. The setup
|
|
12
|
+
* file calls it from an `aroundAll` hook after the file's tests and its afterAll hooks, so it
|
|
13
|
+
* resolves before the file ends, and so before any later `sequence.groupOrder` group starts.
|
|
14
|
+
*/
|
|
15
|
+
function ufSpecFinished(context, request) {
|
|
16
|
+
const { target, harness } = projectHarness(context);
|
|
17
|
+
caseDirectory(harness, request.case);
|
|
18
|
+
const key = keyOf(harness.runId, target);
|
|
19
|
+
const cases = finished().get(key) ?? /* @__PURE__ */ new Set();
|
|
20
|
+
cases.add(request.case);
|
|
21
|
+
finished().set(key, cases);
|
|
22
|
+
}
|
|
23
|
+
/** Whether a target's browser project finished a case's spec file in a run. */
|
|
24
|
+
function specFinished(runId, target, caseId) {
|
|
25
|
+
return finished().get(keyOf(runId, target))?.has(caseId) ?? false;
|
|
26
|
+
}
|
|
27
|
+
//#endregion
|
|
28
|
+
export { specFinished, ufSpecFinished };
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { BROWSER_LAYERS, LAYERS, LayerCheck, LayerFailure, LayerName, LayerOutcome, LayerSkip, LayerSubject, LayerTask, NOT_IN_THIS_RUN_SKIP, NOT_RENDERED_SKIP, NO_INTERACTION_SKIP, NO_OUTPUT_SKIP, NO_OUTPUT_TEST_SKIP, NO_SPEC_SKIP, QuarantineEntry, REQUIRES_SKIP, UfLayerMeta, checkLayers, layerFailures, mergeOutcomes, noOutputSkip, quarantineFor, recordLayer, recordStandIn, requiresSkip, settleOutcome } from "../layers.js";
|
|
2
|
+
import { BROWSER_ENGINES, BrowserEngine, COLOR_SCHEMES, CaseConfig, ColorScheme, HarnessContext, PixelMode, SsrScenario, caseOfFile, caseReference, caseReferences, isReference, ssrScenarios } from "../harness.js";
|
|
3
|
+
import { formatConsoleArgs } from "../browser/console.js";
|
|
4
|
+
import { CaptureAttachment, CaptureOutcome, CaptureRequest, CaptureResult, FONT_AUDIT_SKIP, GeometryDelta, GeometrySnapshot, LIVE_REFERENCE_SKIP, PixelTolerance, REFERENCE_NOT_RUN_SKIP, referenceNotRunSkip } from "../visual-types.js";
|
|
5
|
+
import { MapStackRequest, MapStackResult, SpecFinishedRequest } from "../commands.js";
|
|
6
|
+
import { VIEWPORT } from "./viewport.js";
|
|
7
|
+
import { ACTION_TIMEOUT, AnyBrowserCommand, ParityBrowserOptions, parityBrowser } from "./browser.js";
|
|
8
|
+
import { ArtefactContext, ArtefactOutcome, ArtefactRole, ArtefactStatus, settleArtefact, settleArtefactDirectory, writeIfChanged } from "./policy.js";
|
|
9
|
+
import { CommandProject, caseDirectory, displayRoot, projectHarness, sharedArtefactContext } from "./context.js";
|
|
10
|
+
import { specFinished, ufSpecFinished } from "./finished.js";
|
|
11
|
+
import { ALLOWED_FONTS, CaptureLocation, VisualCommandContext, baselineFileName, captureAt, caseCaptureLocation, diffGeometry, formatGeometryDiff, ufVisualCapture } from "./visual.js";
|
|
12
|
+
import { AriaCommandContext, ColorSchemeContext, FocusCommandContext, InputCommandContext, browserCommands, ufAriaSnapshot, ufArtefact, ufColorScheme, ufComponentEvents, ufFocus, ufResetInput } from "./commands.js";
|
|
13
|
+
import { CompiledModule, compiledEvents, eventsOfModule, recordCompiledModule } from "./events.js";
|
|
14
|
+
import { MATRIX_VERSION, MatrixCells, MatrixTest, MatrixTests, MergedMatrix, ParityMatrix, PartialMatrix, ProjectRecord, RunInfo, RunMode, Shard, buildCells, buildPartialMatrix, buildTests, cellHeadline, cellOf, mergeCells, mergeMatrices, mergeTests, narrowing, outcomeOfCell, settleQuarantine, stringifyMatrix, withoutProjects } from "./matrix.js";
|
|
15
|
+
import { BASELINE_ENVIRONMENT, HarnessMode, HarnessRunOptions, ModeInput, ProjectKind, createHarnessRun, groupOrder, resolveBrowser, resolveHarnessMode } from "./mode.js";
|
|
16
|
+
import { KEBAB_CASE } from "./names.js";
|
|
17
|
+
import { ParityReporter, ParityReporterOptions, isPartialMatrixFile, readPartialMatrices, runName, testKey } from "./reporter.js";
|
|
18
|
+
import { SummaryExpectations, SummaryJudgement, SummaryOptions, SummaryResult, renderMarkdown, summarise, summaryName, unacceptedSkip, writeSummary } from "./summary.js";
|
|
19
|
+
import { DiffOptions, diffLines } from "../diff.js";
|
|
20
|
+
import { errorMessages, formatError } from "../errors.js";
|
|
21
|
+
export { ACTION_TIMEOUT, ALLOWED_FONTS, type AnyBrowserCommand, type AriaCommandContext, type ArtefactContext, type ArtefactOutcome, type ArtefactRole, type ArtefactStatus, BASELINE_ENVIRONMENT, BROWSER_ENGINES, BROWSER_LAYERS, type BrowserEngine, COLOR_SCHEMES, type CaptureAttachment, type CaptureLocation, type CaptureOutcome, type CaptureRequest, type CaptureResult, type CaseConfig, type ColorScheme, type ColorSchemeContext, type CommandProject, type CompiledModule, type DiffOptions, FONT_AUDIT_SKIP, type FocusCommandContext, type GeometryDelta, type GeometrySnapshot, type HarnessContext, type HarnessMode, type HarnessRunOptions, type InputCommandContext, KEBAB_CASE, LAYERS, LIVE_REFERENCE_SKIP, type LayerCheck, LayerFailure, type LayerName, type LayerOutcome, type LayerSkip, type LayerSubject, type LayerTask, MATRIX_VERSION, type MapStackRequest, type MapStackResult, type MatrixCells, type MatrixTest, type MatrixTests, type MergedMatrix, type ModeInput, NOT_IN_THIS_RUN_SKIP, NOT_RENDERED_SKIP, NO_INTERACTION_SKIP, NO_OUTPUT_SKIP, NO_OUTPUT_TEST_SKIP, NO_SPEC_SKIP, type ParityBrowserOptions, type ParityMatrix, ParityReporter, type ParityReporterOptions, type PartialMatrix, type PixelMode, type PixelTolerance, type ProjectKind, type ProjectRecord, type QuarantineEntry, REFERENCE_NOT_RUN_SKIP, REQUIRES_SKIP, type RunInfo, type RunMode, type Shard, type SpecFinishedRequest, type SsrScenario, type SummaryExpectations, type SummaryJudgement, type SummaryOptions, type SummaryResult, type UfLayerMeta, VIEWPORT, type VisualCommandContext, baselineFileName, browserCommands, buildCells, buildPartialMatrix, buildTests, captureAt, caseCaptureLocation, caseDirectory, caseOfFile, caseReference, caseReferences, cellHeadline, cellOf, checkLayers, compiledEvents, createHarnessRun, diffGeometry, diffLines, displayRoot, errorMessages, eventsOfModule, formatConsoleArgs, formatError, formatGeometryDiff, groupOrder, isPartialMatrixFile, isReference, layerFailures, mergeCells, mergeMatrices, mergeOutcomes, mergeTests, narrowing, noOutputSkip, outcomeOfCell, parityBrowser, projectHarness, quarantineFor, readPartialMatrices, recordCompiledModule, recordLayer, recordStandIn, referenceNotRunSkip, renderMarkdown, requiresSkip, resolveBrowser, resolveHarnessMode, runName, settleArtefact, settleArtefactDirectory, settleOutcome, settleQuarantine, sharedArtefactContext, specFinished, ssrScenarios, stringifyMatrix, summarise, summaryName, testKey, ufAriaSnapshot, ufArtefact, ufColorScheme, ufComponentEvents, ufFocus, ufResetInput, ufSpecFinished, ufVisualCapture, unacceptedSkip, withoutProjects, writeIfChanged, writeSummary };
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { BROWSER_ENGINES, COLOR_SCHEMES, caseOfFile, caseReference, caseReferences, isReference, ssrScenarios } from "../harness.js";
|
|
2
|
+
import { caseDirectory, displayRoot, projectHarness, sharedArtefactContext } from "./context.js";
|
|
3
|
+
import { compiledEvents, eventsOfModule, recordCompiledModule } from "./events.js";
|
|
4
|
+
import { specFinished, ufSpecFinished } from "./finished.js";
|
|
5
|
+
import { KEBAB_CASE } from "./names.js";
|
|
6
|
+
import { diffLines } from "../diff.js";
|
|
7
|
+
import { settleArtefact, settleArtefactDirectory, writeIfChanged } from "./policy.js";
|
|
8
|
+
import { VIEWPORT } from "./viewport.js";
|
|
9
|
+
import { BASELINE_ENVIRONMENT, createHarnessRun, groupOrder, resolveBrowser, resolveHarnessMode } from "./mode.js";
|
|
10
|
+
import { ALLOWED_FONTS, baselineFileName, captureAt, caseCaptureLocation, diffGeometry, formatGeometryDiff, ufVisualCapture } from "./visual.js";
|
|
11
|
+
import { browserCommands, ufAriaSnapshot, ufArtefact, ufColorScheme, ufComponentEvents, ufFocus, ufResetInput } from "./commands.js";
|
|
12
|
+
import { ACTION_TIMEOUT, parityBrowser } from "./browser.js";
|
|
13
|
+
import { formatConsoleArgs } from "../browser/console.js";
|
|
14
|
+
import { errorMessages, formatError } from "../errors.js";
|
|
15
|
+
import { FONT_AUDIT_SKIP, LIVE_REFERENCE_SKIP, REFERENCE_NOT_RUN_SKIP, referenceNotRunSkip } from "../visual-types.js";
|
|
16
|
+
import { BROWSER_LAYERS, LAYERS, LayerFailure, NOT_IN_THIS_RUN_SKIP, NOT_RENDERED_SKIP, NO_INTERACTION_SKIP, NO_OUTPUT_SKIP, NO_OUTPUT_TEST_SKIP, NO_SPEC_SKIP, REQUIRES_SKIP, checkLayers, layerFailures, mergeOutcomes, noOutputSkip, quarantineFor, recordLayer, recordStandIn, requiresSkip, settleOutcome } from "../layers.js";
|
|
17
|
+
import { MATRIX_VERSION, buildCells, buildPartialMatrix, buildTests, cellHeadline, cellOf, mergeCells, mergeMatrices, mergeTests, narrowing, outcomeOfCell, settleQuarantine, stringifyMatrix, withoutProjects } from "./matrix.js";
|
|
18
|
+
import { ParityReporter, isPartialMatrixFile, readPartialMatrices, runName, testKey } from "./reporter.js";
|
|
19
|
+
import { renderMarkdown, summarise, summaryName, unacceptedSkip, writeSummary } from "./summary.js";
|
|
20
|
+
export { ACTION_TIMEOUT, ALLOWED_FONTS, BASELINE_ENVIRONMENT, BROWSER_ENGINES, BROWSER_LAYERS, COLOR_SCHEMES, FONT_AUDIT_SKIP, KEBAB_CASE, LAYERS, LIVE_REFERENCE_SKIP, LayerFailure, MATRIX_VERSION, NOT_IN_THIS_RUN_SKIP, NOT_RENDERED_SKIP, NO_INTERACTION_SKIP, NO_OUTPUT_SKIP, NO_OUTPUT_TEST_SKIP, NO_SPEC_SKIP, ParityReporter, REFERENCE_NOT_RUN_SKIP, REQUIRES_SKIP, VIEWPORT, baselineFileName, browserCommands, buildCells, buildPartialMatrix, buildTests, captureAt, caseCaptureLocation, caseDirectory, caseOfFile, caseReference, caseReferences, cellHeadline, cellOf, checkLayers, compiledEvents, createHarnessRun, diffGeometry, diffLines, displayRoot, errorMessages, eventsOfModule, formatConsoleArgs, formatError, formatGeometryDiff, groupOrder, isPartialMatrixFile, isReference, layerFailures, mergeCells, mergeMatrices, mergeOutcomes, mergeTests, narrowing, noOutputSkip, outcomeOfCell, parityBrowser, projectHarness, quarantineFor, readPartialMatrices, recordCompiledModule, recordLayer, recordStandIn, referenceNotRunSkip, renderMarkdown, requiresSkip, resolveBrowser, resolveHarnessMode, runName, settleArtefact, settleArtefactDirectory, settleOutcome, settleQuarantine, sharedArtefactContext, specFinished, ssrScenarios, stringifyMatrix, summarise, summaryName, testKey, ufAriaSnapshot, ufArtefact, ufColorScheme, ufComponentEvents, ufFocus, ufResetInput, ufSpecFinished, ufVisualCapture, unacceptedSkip, withoutProjects, writeIfChanged, writeSummary };
|