Skip to content

Commit 56f1824

Browse files
committed
test: cover prepare ios runner provider scenario
1 parent 6bb13b2 commit 56f1824

2 files changed

Lines changed: 19 additions & 0 deletions

File tree

test/integration/provider-scenarios/ios-lifecycle.test.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,18 @@ test('Provider-backed integration iOS Settings flow uses scripted simctl and run
4444
ios_simulator_device_set: null,
4545
},
4646
},
47+
{
48+
name: 'prepare iOS runner',
49+
command: 'prepare',
50+
positionals: ['ios-runner'],
51+
flags: { platform: 'ios', udid: PROVIDER_SCENARIO_IOS_SIMULATOR.id },
52+
expectData: {
53+
action: 'ios-runner',
54+
platform: 'ios',
55+
deviceId: PROVIDER_SCENARIO_IOS_SIMULATOR.id,
56+
runner: { uptimeMs: 42 },
57+
},
58+
},
4759
{
4860
name: 'capture settings snapshot',
4961
command: 'snapshot',

test/integration/provider-scenarios/ios-world.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,13 @@ export async function createIosSettingsWorld(): Promise<IosSettingsWorld> {
2929
const { tempRoot, appPath } = createDemoIosApp('agent-device-provider-scenario-ios-deploy-');
3030
const inventoryRequests: DeviceInventoryRequest[] = [];
3131
const runnerTranscript = createProviderTranscript([
32+
{
33+
command: 'ios.runner.uptime',
34+
deviceId: PROVIDER_SCENARIO_IOS_SIMULATOR.id,
35+
platform: 'ios',
36+
request: { command: 'uptime' },
37+
result: { uptimeMs: 42 },
38+
},
3239
runnerSnapshot(),
3340
runnerSnapshot(),
3441
{

0 commit comments

Comments
 (0)