Skip to content

Commit 41ab2af

Browse files
cameroncookecodex
andcommitted
test(snapshot): Add keyboard toggle snapshots
Add simulator-management snapshot coverage for the new keyboard toggle tools across CLI, MCP, and JSON output. Cover both successful shortcut dispatch and invalid simulator errors so rendered output stays stable. Co-Authored-By: OpenAI Codex <noreply@openai.com>
1 parent fd120e0 commit 41ab2af

13 files changed

Lines changed: 200 additions & 0 deletions
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
2+
⚙️ Toggle Connect Hardware Keyboard
3+
4+
Simulator: <UUID>
5+
6+
Errors (1):
7+
8+
✗ Simulator <UUID> not found. Use list_sims to see available simulators.
9+
10+
❌ Failed to toggle hardware keyboard.
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
2+
⚙️ Toggle Connect Hardware Keyboard
3+
4+
Simulator: <UUID>
5+
6+
✅ Sent Connect Hardware Keyboard (Cmd+Shift+K)
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
2+
⚙️ Toggle Software Keyboard
3+
4+
Simulator: <UUID>
5+
6+
Errors (1):
7+
8+
✗ Simulator <UUID> not found. Use list_sims to see available simulators.
9+
10+
❌ Failed to toggle software keyboard.
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
2+
⚙️ Toggle Software Keyboard
3+
4+
Simulator: <UUID>
5+
6+
✅ Sent Toggle Software Keyboard (Cmd+K)
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{
2+
"schema": "xcodebuildmcp.output.simulator-action-result",
3+
"schemaVersion": "1",
4+
"didError": true,
5+
"error": "Failed to toggle hardware keyboard.",
6+
"data": {
7+
"summary": {
8+
"status": "FAILED"
9+
},
10+
"action": {
11+
"type": "toggle-connect-hardware-keyboard"
12+
},
13+
"diagnostics": {
14+
"warnings": [],
15+
"errors": [
16+
{
17+
"message": "Simulator <UUID> not found. Use list_sims to see available simulators."
18+
}
19+
]
20+
},
21+
"artifacts": {
22+
"simulatorId": "<UUID>"
23+
}
24+
}
25+
}
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"schema": "xcodebuildmcp.output.simulator-action-result",
3+
"schemaVersion": "1",
4+
"didError": false,
5+
"error": null,
6+
"data": {
7+
"summary": {
8+
"status": "SUCCEEDED"
9+
},
10+
"action": {
11+
"type": "toggle-connect-hardware-keyboard"
12+
},
13+
"artifacts": {
14+
"simulatorId": "<UUID>"
15+
}
16+
}
17+
}
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{
2+
"schema": "xcodebuildmcp.output.simulator-action-result",
3+
"schemaVersion": "1",
4+
"didError": true,
5+
"error": "Failed to toggle software keyboard.",
6+
"data": {
7+
"summary": {
8+
"status": "FAILED"
9+
},
10+
"action": {
11+
"type": "toggle-software-keyboard"
12+
},
13+
"diagnostics": {
14+
"warnings": [],
15+
"errors": [
16+
{
17+
"message": "Simulator <UUID> not found. Use list_sims to see available simulators."
18+
}
19+
]
20+
},
21+
"artifacts": {
22+
"simulatorId": "<UUID>"
23+
}
24+
}
25+
}
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"schema": "xcodebuildmcp.output.simulator-action-result",
3+
"schemaVersion": "1",
4+
"didError": false,
5+
"error": null,
6+
"data": {
7+
"summary": {
8+
"status": "SUCCEEDED"
9+
},
10+
"action": {
11+
"type": "toggle-software-keyboard"
12+
},
13+
"artifacts": {
14+
"simulatorId": "<UUID>"
15+
}
16+
}
17+
}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
2+
⚙️ Toggle Connect Hardware Keyboard
3+
4+
Simulator: <UUID>
5+
6+
Errors (1):
7+
8+
✗ Simulator <UUID> not found. Use list_sims to see available simulators.
9+
10+
❌ Failed to toggle hardware keyboard.
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
2+
⚙️ Toggle Connect Hardware Keyboard
3+
4+
Simulator: <UUID>
5+
6+
✅ Sent Connect Hardware Keyboard (Cmd+Shift+K)

0 commit comments

Comments
 (0)