Skip to content

Commit

Permalink
fix: first screenshot error
Browse files Browse the repository at this point in the history
  • Loading branch information
noomorph committed Jun 16, 2018
1 parent 4bb6978 commit 38f03d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion detox/src/devices/AppleSimUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ const retry = require('../utils/retry');
const environment = require('../utils/environment');

class AppleSimUtils {

async setPermissions(udid, bundleId, permissionsObj) {
const statusLogs = {
trying: `Trying to set permissions...`,
Expand Down Expand Up @@ -230,6 +229,7 @@ class AppleSimUtils {
await this._bootDeviceMagically(udid);
}
await this._execSimctl({ cmd: `bootstatus ${udid}`, retries: 1 });
await this.takeScreenshot(udid, '/dev/null').catch(_.noop); // fails but enables further headless screenshotting
}

async _bootDeviceMagically(udid) {
Expand Down

0 comments on commit 38f03d7

Please sign in to comment.