Skip to content

Mobile MCP: let AI agents drive your iOS and Android apps. MCP server for simulators, emulators and real devices. Works with Claude Code, Codex, Cursor and any MCP client.

test: swiping direction was incorrect

gmegidish0ef4d0b3482b
diff --git a/test/iphone-simulator.ts b/test/iphone-simulator.ts
index 10c7329..33bf66f 100644
--- a/test/iphone-simulator.ts
+++ b/test/iphone-simulator.ts
@@ -33,15 +33,15 @@ describe("iphone-simulator", () => {
const elements1 = await simctl.getElementsOnScreen();
assert.ok(elements1.findIndex(e => e.name === "com.apple.settings.general") !== -1);
- // swipe down
- await simctl.swipe("down");
+ // swipe up (bottom of screen to top of screen)
+ await simctl.swipe("up");
// make sure "General" is not visible now
const elements2 = await simctl.getElementsOnScreen();
assert.ok(elements2.findIndex(e => e.name === "com.apple.settings.general") === -1);
- // swipe up
- await simctl.swipe("up");
+ // swipe down
+ await simctl.swipe("down");
// make sure "General" is visible again
const elements3 = await simctl.getElementsOnScreen();