Skip to content

Commit f958c63

Browse files
thymikeeclaude
andcommitted
test(limrun): pin iOS settings --app display-name resolution through the remote app list
Co-Authored-By: Claude Opus 5.5 <[email protected]>
1 parent e958fe0 commit f958c63

1 file changed

Lines changed: 24 additions & 0 deletions

File tree

‎test/integration/provider-scenarios/limrun-ios-settings.test.ts‎

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,3 +115,27 @@ test('a Limrun iOS simctl failure that is not a refusal stays a command failure'
115115
await dispose();
116116
}
117117
});
118+
119+
test('a Limrun iOS permission resolves an app display name through the remote app list', async () => {
120+
state.simctl.mockImplementation(() => ({
121+
wait: async () => ({ code: 0, stdout: '', stderr: '' }),
122+
}));
123+
const { binding, dispose } = await bindLimrunDeployment(
124+
'ios',
125+
new AbortController().signal,
126+
createLimrunRuntimeDependencies({ env: {}, cwd: process.cwd() }).ios,
127+
);
128+
try {
129+
await binding.operations.setSetting!({
130+
setting: 'permission',
131+
state: 'grant',
132+
appBundleId: 'Example',
133+
options: { permissionTarget: 'camera' },
134+
});
135+
expect(state.simctl.mock.calls).toEqual([
136+
[['privacy', 'booted', 'grant', 'camera', 'com.example.ios']],
137+
]);
138+
} finally {
139+
await dispose();
140+
}
141+
});

0 commit comments

Comments
 (0)