mirror of
https://github.com/priyanshujain/sanderling.git
synced 2026-10-04 12:07:09 +00:00
fix(spec): satisfy AccessibilityElement interface in Tap test fixture
This commit is contained in:
1 parent
049ef80206
commit
ba10d3221f
1 file changed
+5
-1
@@ -217,7 +217,11 @@ test("Tap returns a TapAction with the supplied selector", () => {
|
|||||||
|
|
||||||
test("Tap accepts an AccessibilityElement", () => {
|
test("Tap accepts an AccessibilityElement", () => {
|
||||||
installFakeRuntime();
|
installFakeRuntime();
|
||||||
const element: AccessibilityElement = { id: "login_continue" };
|
const element: AccessibilityElement = {
|
||||||
|
id: "login_continue",
|
||||||
|
find: () => undefined,
|
||||||
|
findAll: () => [],
|
||||||
|
};
|
||||||
const action = Tap({ on: element });
|
const action = Tap({ on: element });
|
||||||
assert.equal(action.kind, "Tap");
|
assert.equal(action.kind, "Tap");
|
||||||
assert.equal(action.on, element);
|
assert.equal(action.on, element);
|
||||||
|
|||||||
Reference in new issue
Block a user