feat: capture state and element evidence
This commit is contained in:
@@ -6,15 +6,27 @@ import type { RawActionableElement } from "../src/types.js";
|
||||
function raw(overrides: Partial<RawActionableElement>): RawActionableElement {
|
||||
return {
|
||||
uid: "button_0_Open settings",
|
||||
candidateIndex: 0,
|
||||
tag: "button",
|
||||
role: "button",
|
||||
accessibleName: "Open settings",
|
||||
identityText: "Open settings",
|
||||
text: "Open settings",
|
||||
label: null,
|
||||
placeholder: null,
|
||||
attributes: { "data-testid": "open-settings", id: "openSettings" },
|
||||
bbox: { x: 0, y: 0, width: 100, height: 30 },
|
||||
visibility: { visible: true, enabled: true, editable: false, receivesEvents: true },
|
||||
context: {
|
||||
dialog: null,
|
||||
form: null,
|
||||
section: null,
|
||||
row: null,
|
||||
landmark: null,
|
||||
listitem: null,
|
||||
},
|
||||
parameterSurface: null,
|
||||
evidence: [],
|
||||
...overrides,
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user