From ba10d3221f50a956ed03ea988535c083542e6ac3 Mon Sep 17 00:00:00 2001 From: PJ Date: Mon, 27 Apr 2026 00:02:37 +0700 Subject: [PATCH] fix(spec): satisfy AccessibilityElement interface in Tap test fixture --- pkg/spec/test/api.test.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pkg/spec/test/api.test.ts b/pkg/spec/test/api.test.ts index 891db82..8b9f4fd 100644 --- a/pkg/spec/test/api.test.ts +++ b/pkg/spec/test/api.test.ts @@ -217,7 +217,11 @@ test("Tap returns a TapAction with the supplied selector", () => { test("Tap accepts an AccessibilityElement", () => { installFakeRuntime(); - const element: AccessibilityElement = { id: "login_continue" }; + const element: AccessibilityElement = { + id: "login_continue", + find: () => undefined, + findAll: () => [], + }; const action = Tap({ on: element }); assert.equal(action.kind, "Tap"); assert.equal(action.on, element);