Skip to content

Commit f46fc04

Browse files
moar
1 parent e10c05b commit f46fc04

3 files changed

Lines changed: 5 additions & 3 deletions

File tree

lib/types.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,6 @@ export interface AppleDevice {
103103
udid: string;
104104
simctl?: Simctl;
105105
devicectl?: Devicectl;
106-
[key: string]: any;
107106
}
108107

109108
/**

test/functional/helpers/simulator.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export async function killAllSimulators(): Promise<void> {
2222
export async function shutdownSimulator(device: AppleDevice): Promise<void> {
2323
// stop XCTest processes if running to avoid unexpected side effects
2424
await resetTestProcesses(device.udid, true);
25-
await device.shutdown();
25+
await (device.simctl as Simctl).shutdownDevice();
2626
}
2727

2828
export async function deleteDeviceWithRetry(udid: string): Promise<void> {

test/functional/webdriveragent-e2e-specs.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,10 @@ describe('WebDriverAgent', function () {
6767
this.timeout(6 * 60 * 1000);
6868
beforeEach(async function () {
6969
await killAllSimulators();
70-
await device.run({startupTimeout: SIM_STARTUP_TIMEOUT_MS});
70+
await (device.simctl as Simctl).startBootMonitor({
71+
shouldPreboot: true,
72+
timeout: SIM_STARTUP_TIMEOUT_MS
73+
});
7174
});
7275
afterEach(async function () {
7376
try {

0 commit comments

Comments
 (0)