From f49ea7f2cb6039a0dc094899f1100abc84452ce2 Mon Sep 17 00:00:00 2001 From: PJ Date: Sat, 25 Apr 2026 20:02:29 +0700 Subject: [PATCH] feat(spec): add desc, class, clickable, enabled, checked, focused, selected to AccessibilityElement Runtime fields set by the verifier were missing from the TypeScript type, causing linting errors on el.desc and related accesses in specs. --- pkg/spec/src/types.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pkg/spec/src/types.ts b/pkg/spec/src/types.ts index a33a612..5019187 100644 --- a/pkg/spec/src/types.ts +++ b/pkg/spec/src/types.ts @@ -3,6 +3,13 @@ export type Snapshots = Record; export interface AccessibilityElement { id?: string; text?: string; + desc?: string; + class?: string; + clickable?: boolean; + enabled?: boolean; + checked?: boolean; + focused?: boolean; + selected?: boolean; bounds?: { left: number; top: number; right: number; bottom: number }; x?: number; y?: number;