Detox: launchApp failure: "The app has unexpectedly disconnected from Detox server"
Description
When running a jest test suite it fails randomly most of the time on the launchApp
command. There’s no consistency, within the same suite one test may fail and the next one pass.
Fails with this error message:
DetoxRuntimeError: The pending request #-1000 ("isReady") has been rejected due to the following error:
The app has unexpectedly disconnected from Detox server.
Fails during the isReady
message due to the app exiting (SESSION_TORN
).
detox[62630] TRACE: [WS_SEND] {"type":"isReady","params":{},"messageId":-1000}
detox[62630] TRACE: [WSS_GET_FROM, #tester] {"type":"isReady","params":{},"messageId":-1000}
detox[62630] TRACE: [WSS_SEND_TO, #app] {"type":"isReady","params":{},"messageId":-1000}
detox[62630] TRACE: [SESSION_TORN] app exited session b8de26c5-80f9-f98c-dd71-eff221cd865d
detox[62630] TRACE: [WSS_SEND_TO, #tester] {"type":"appDisconnected"}
detox[62630] TRACE: [WS_MESSAGE] {"type":"appDisconnected"}
- I have tested this issue on the latest Detox release and it still reproduces
Setup
Config (`config.json`)
{
"testEnvironment": "./environment",
"testRunner": "jest-circus/runner",
"testTimeout": 120000,
"testRegex": "\\.e2e\\.ts$",
"reporters": ["detox/runners/jest/streamlineReporter"],
"verbose": true
}
Environment (`environment.js`)
const {
DetoxCircusEnvironment,
SpecReporter,
WorkerAssignReporter,
} = require("detox/runners/jest-circus");
class CustomDetoxEnvironment extends DetoxCircusEnvironment {
constructor(config, context) {
super(config, context);
// Can be safely removed, if you are content with the default value (=300000ms)
this.initTimeout = 300000;
// This takes care of generating status logs on a per-spec basis. By default, Jest only reports at file-level.
// This is strictly optional.
this.registerListeners({
SpecReporter,
WorkerAssignReporter,
});
}
}
module.exports = CustomDetoxEnvironment;
Test File (`auth.e2e.ts`)
import { E2E_UNSUB_USER_EMAIL, E2E_UNSUB_USER_PASS } from "@env";
import { device, expect, element, by } from "detox";
import Elements from "./elementIds.json";
import { alertMatcher } from "./matchers";
describe("Authentication", () => {
beforeEach(async () => {
console.log("BEFORE");
await device.launchApp({
delete: true,
permissions: { notifications: "YES", userTracking: "YES" },
});
console.log("BEFORE COMPLETED");
});
describe("Where email and password are valid", () => {
it("Should login successfully to the dashboard", async () => {
await expect(element(by.text("Sign In!"))).toBeVisible();
await element(by.text("Sign In!")).tap();
await element(by.id(Elements.Auth.SignIn.EmailInput)).typeText(
E2E_UNSUB_USER_EMAIL,
);
await element(by.id(Elements.Auth.SignIn.PasswordInput)).typeText(
E2E_UNSUB_USER_PASS,
);
await element(by.text("Sign in with Email")).tap();
await expect(element(by.id(Elements.Home.Screen))).toBeVisible();
});
});
describe("Where email and password are invalid", () => {
it("Should login unsuccessfully and display an error", async () => {
await expect(element(by.text("Sign In!"))).toBeVisible();
await element(by.text("Sign In!")).tap();
await element(by.id(Elements.Auth.SignIn.EmailInput)).typeText(
E2E_UNSUB_USER_EMAIL,
);
await element(by.id(Elements.Auth.SignIn.PasswordInput)).typeText(
"BadPassword",
);
await element(by.text("Sign in with Email")).tap();
await expect(element(by.label("Ok").and(alertMatcher))).toBeVisible();
await element(by.label("Ok").and(alertMatcher)).tap();
});
});
});
Detox Config (`.detoxrc`)
{
"testRunner": "jest",
"runnerConfig": "e2e/config.json",
"behavior": {
"init": {
"exposeGlobals": false
}
},
"apps": {
"ios.release": {
"type": "ios.app",
"binaryPath": "ios/build/Build/Products/Release-iphonesimulator/Keep it Cleaner.app",
"build": ". ./scripts/e2e/ios-build.sh -r"
},
"ios.debug": {
"type": "ios.app",
"binaryPath": "ios/build/Build/Products/Debug-iphonesimulator/Keep it Cleaner.app",
"build": ". ./scripts/e2e/ios-build.sh"
},
},
"devices": {
"simulator": {
"type": "ios.simulator",
"device": {
"type": "iPhone 12 Pro Max"
}
},
},
"configurations": {
"ios.release": {
"device": "simulator",
"app": "ios.release"
},
"ios.debug": {
"device": "simulator",
"app": "ios.debug"
},
}
}
Reproduction
Same result in Debug or Release
- Build command:
xcodebuild build -workspace ios/MyApp.xcworkspace -scheme AppScheme -derivedDataPath ios/build -configuration Debug -arch x86_64
- Run command:
npx detox test --configuration ios.debug --loglevel trace
Environment:
- Detox: 18.16.0
- React Native: 0.64.2
- Node: 14.15.4
- Device: iPhone 12 Pro Max
- Xcode: 12.5
- iOS: 14.5
- macOS: Big Sur 11.3
Logs
Device and verbose Detox logs
- I have run my tests using the
--loglevel trace
argument and am providing the verbose log below:
Full Trace Detox logs
detox[64254] INFO: [test.js] DETOX_CONFIGURATION="ios.debug" DETOX_LOGLEVEL="trace" DETOX_REPORT_SPECS=true DETOX_START_TIMESTAMP=1623310462960 DETOX_USE_CUSTOM_LOGGER=true jest --config e2e/config.json --testNamePattern '^((?!:android:).)*$' --maxWorkers 1 e2e
detox[64255] TRACE: [DETOX_CREATE] created a Detox instance with config:
{"artifactsConfig":{"rootDir":"artifacts/ios.debug.2021-06-10 07-34-22Z","plugins":{"log":{"enabled":false,"keepOnlyFailedTestsArtifacts":false},"screenshot":{"enabled":true,"shouldTakeAutomaticSnapshots":false,"keepOnlyFailedTestsArtifacts":false},"video":{"enabled":false,"keepOnlyFailedTestsArtifacts":false},"instruments":{"enabled":false,"keepOnlyFailedTestsArtifacts":false},"timeline":{"enabled":false},"uiHierarchy":{"enabled":false,"keepOnlyFailedTestsArtifacts":false}},"pathBuilder":{"_rootDir":"artifacts/ios.debug.2021-06-10 07-34-22Z"}},"appsConfig":{"default":{"type":"ios.app","binaryPath":"ios/build/Build/Products/Debug-iphonesimulator/My App.app","build":". ./scripts/e2e/ios-build.sh"}},"behaviorConfig":{"init":{"reinstallApp":true,"exposeGlobals":false},"cleanup":{"shutdownDevice":false},"launchApp":"auto"},"cliConfig":{"configuration":"ios.debug","loglevel":"trace","useCustomLogger":"true"},"deviceConfig":{"type":"ios.simulator","device":{"type":"iPhone 12 Pro Max"}},"runnerConfig":{"testRunner":"jest","runnerConfig":"e2e/config.json","specs":"e2e"},"sessionConfig":{"autoStart":true,"server":"ws://localhost:51438","sessionId":"6a1e2a74-1d3a-a3fc-1df3-3fc2df5223a9","debugSynchronization":10000},"errorComposer":{"configurationName":"ios.debug","filepath":"/Users/user/Documents/MyApp/repos/react-native-app/.detoxrc","contents":{"testRunner":"jest","runnerConfig":"e2e/config.json","behavior":{"init":{"exposeGlobals":false}},"apps":{"ios.release":{"type":"ios.app","binaryPath":"ios/build/Build/Products/Release-iphonesimulator/My App.app","build":". ./scripts/e2e/ios-build.sh -r"},"android.release":{"type":"android.apk","binaryPath":"android/app/build/outputs/apk/release/universal.apk","build":". ./scripts/e2e/android-build.sh -r"},"ios.debug":{"type":"ios.app","binaryPath":"ios/build/Build/Products/Debug-iphonesimulator/My App.app","build":". ./scripts/e2e/ios-build.sh"},"android.debug":{"type":"android.apk","binaryPath":"android/app/build/outputs/apk/debug/app-release.apk","build":". ./scripts/e2e/android-build.sh"}},"devices":{"simulator":{"type":"ios.simulator","device":{"type":"iPhone 12 Pro Max"}},"emulator":{"type":"android.emulator","device":{"avdName":"Pixel_3a_API_30_x86"}}},"configurations":{"ios.release":{"device":"simulator","app":"ios.release"},"android.release":{"device":"emulator","app":"android.release"},"ios.debug":{"device":"simulator","app":"ios.debug"},"android.debug":{"device":"emulator","app":"android.debug"}}},"_extends":false}}
detox[64255] DEBUG: [WSS_CREATE] Detox server listening on localhost:51438...
detox[64255] DEBUG: [WSS_CONNECTION, #51439] registered a new connection.
detox[64255] TRACE: [WS_OPEN] opened web socket to: ws://localhost:51438
detox[64255] TRACE: [WS_SEND] {"type":"login","params":{"sessionId":"6a1e2a74-1d3a-a3fc-1df3-3fc2df5223a9","role":"tester"},"messageId":0}
detox[64255] TRACE: [WSS_GET_FROM, #51439] {"type":"login","params":{"sessionId":"6a1e2a74-1d3a-a3fc-1df3-3fc2df5223a9","role":"tester"},"messageId":0}
detox[64255] TRACE: [SESSION_CREATED] created session 6a1e2a74-1d3a-a3fc-1df3-3fc2df5223a9
detox[64255] TRACE: [WSS_SEND_TO, #tester] {"type":"loginSuccess","params":{"testerConnected":true,"appConnected":false},"messageId":0}
detox[64255] TRACE: [SESSION_JOINED] tester joined session 6a1e2a74-1d3a-a3fc-1df3-3fc2df5223a9
detox[64255] TRACE: [WS_MESSAGE] {"type":"loginSuccess","params":{"testerConnected":true,"appConnected":false},"messageId":0}
detox[64255] DEBUG: [EXEC_CMD, #0] applesimutils --list --byType "iPhone 12 Pro Max"
detox[64255] TRACE: [EXEC_SUCCESS, #0] [
{
"os" : {
"bundlePath" : "\/Applications\/Xcode.app\/Contents\/Developer\/Platforms\/iPhoneOS.platform\/Library\/Developer\/CoreSimulator\/Profiles\/Runtimes\/iOS.simruntime",
"buildversion" : "18E182",
"runtimeRoot" : "\/Applications\/Xcode.app\/Contents\/Developer\/Platforms\/iPhoneOS.platform\/Library\/Developer\/CoreSimulator\/Profiles\/Runtimes\/iOS.simruntime\/Contents\/Resources\/RuntimeRoot",
"identifier" : "com.apple.CoreSimulator.SimRuntime.iOS-14-5",
"version" : "14.5",
"isAvailable" : true,
"supportedDeviceTypes" : [
{
"bundlePath" : "\/Applications\/Xcode.app\/Contents\/Developer\/Platforms\/iPhoneOS.platform\/Library\/Developer\/CoreSimulator\/Profiles\/DeviceTypes\/iPhone 6s.simdevicetype",
"name" : "iPhone 6s",
"identifier" : "com.apple.CoreSimulator.SimDeviceType.iPhone-6s",
"productFamily" : "iPhone"
},
{
"bundlePath" : "\/Applications\/Xcode.app\/Contents\/Developer\/Platforms\/iPhoneOS.platform\/Library\/Developer\/CoreSimulator\/Profiles\/DeviceTypes\/iPhone 6s Plus.simdevicetype",
"name" : "iPhone 6s Plus",
"identifier" : "com.apple.CoreSimulator.SimDeviceType.iPhone-6s-Plus",
"productFamily" : "iPhone"
},
{
"bundlePath" : "\/Applications\/Xcode.app\/Contents\/Developer\/Platforms\/iPhoneOS.platform\/Library\/Developer\/CoreSimulator\/Profiles\/DeviceTypes\/iPhone SE (1st generation).simdevicetype",
"name" : "iPhone SE (1st generation)",
"identifier" : "com.apple.CoreSimulator.SimDeviceType.iPhone-SE",
"productFamily" : "iPhone"
},
{
"bundlePath" : "\/Applications\/Xcode.app\/Contents\/Developer\/Platforms\/iPhoneOS.platform\/Library\/Developer\/CoreSimulator\/Profiles\/DeviceTypes\/iPhone 7.simdevicetype",
"name" : "iPhone 7",
"identifier" : "com.apple.CoreSimulator.SimDeviceType.iPhone-7",
"productFamily" : "iPhone"
},
{
"bundlePath" : "\/Applications\/Xcode.app\/Contents\/Developer\/Platforms\/iPhoneOS.platform\/Library\/Developer\/CoreSimulator\/Profiles\/DeviceTypes\/iPhone 7 Plus.simdevicetype",
"name" : "iPhone 7 Plus",
"identifier" : "com.apple.CoreSimulator.SimDeviceType.iPhone-7-Plus",
"productFamily" : "iPhone"
},
{
"bundlePath" : "\/Applications\/Xcode.app\/Contents\/Developer\/Platforms\/iPhoneOS.platform\/Library\/Developer\/CoreSimulator\/Profiles\/DeviceTypes\/iPhone 8.simdevicetype",
"name" : "iPhone 8",
"identifier" : "com.apple.CoreSimulator.SimDeviceType.iPhone-8",
"productFamily" : "iPhone"
},
{
"bundlePath" : "\/Applications\/Xcode.app\/Contents\/Developer\/Platforms\/iPhoneOS.platform\/Library\/Developer\/CoreSimulator\/Profiles\/DeviceTypes\/iPhone 8 Plus.simdevicetype",
"name" : "iPhone 8 Plus",
"identifier" : "com.apple.CoreSimulator.SimDeviceType.iPhone-8-Plus",
"productFamily" : "iPhone"
},
{
"bundlePath" : "\/Applications\/Xcode.app\/Contents\/Developer\/Platforms\/iPhoneOS.platform\/Library\/Developer\/CoreSimulator\/Profiles\/DeviceTypes\/iPhone X.simdevicetype",
"name" : "iPhone X",
"identifier" : "com.apple.CoreSimulator.SimDeviceType.iPhone-X",
"productFamily" : "iPhone"
},
{
"bundlePath" : "\/Applications\/Xcode.app\/Contents\/Developer\/Platforms\/iPhoneOS.platform\/Library\/Developer\/CoreSimulator\/Profiles\/DeviceTypes\/iPhone Xs.simdevicetype",
"name" : "iPhone Xs",
"identifier" : "com.apple.CoreSimulator.SimDeviceType.iPhone-XS",
"productFamily" : "iPhone"
},
{
"bundlePath" : "\/Applications\/Xcode.app\/Contents\/Developer\/Platforms\/iPhoneOS.platform\/Library\/Developer\/CoreSimulator\/Profiles\/DeviceTypes\/iPhone Xs Max.simdevicetype",
"name" : "iPhone Xs Max",
"identifier" : "com.apple.CoreSimulator.SimDeviceType.iPhone-XS-Max",
"productFamily" : "iPhone"
},
{
"bundlePath" : "\/Applications\/Xcode.app\/Contents\/Developer\/Platforms\/iPhoneOS.platform\/Library\/Developer\/CoreSimulator\/Profiles\/DeviceTypes\/iPhone Xʀ.simdevicetype",
"name" : "iPhone Xʀ",
"identifier" : "com.apple.CoreSimulator.SimDeviceType.iPhone-XR",
"productFamily" : "iPhone"
},
{
"bundlePath" : "\/Applications\/Xcode.app\/Contents\/Developer\/Platforms\/iPhoneOS.platform\/Library\/Developer\/CoreSimulator\/Profiles\/DeviceTypes\/iPhone 11.simdevicetype",
"name" : "iPhone 11",
"identifier" : "com.apple.CoreSimulator.SimDeviceType.iPhone-11",
"productFamily" : "iPhone"
},
{
"bundlePath" : "\/Applications\/Xcode.app\/Contents\/Developer\/Platforms\/iPhoneOS.platform\/Library\/Developer\/CoreSimulator\/Profiles\/DeviceTypes\/iPhone 11 Pro.simdevicetype",
"name" : "iPhone 11 Pro",
"identifier" : "com.apple.CoreSimulator.SimDeviceType.iPhone-11-Pro",
"productFamily" : "iPhone"
},
{
"bundlePath" : "\/Applications\/Xcode.app\/Contents\/Developer\/Platforms\/iPhoneOS.platform\/Library\/Developer\/CoreSimulator\/Profiles\/DeviceTypes\/iPhone 11 Pro Max.simdevicetype",
"name" : "iPhone 11 Pro Max",
"identifier" : "com.apple.CoreSimulator.SimDeviceType.iPhone-11-Pro-Max",
"productFamily" : "iPhone"
},
{
"bundlePath" : "\/Applications\/Xcode.app\/Contents\/Developer\/Platforms\/iPhoneOS.platform\/Library\/Developer\/CoreSimulator\/Profiles\/DeviceTypes\/iPhone SE (2nd generation).simdevicetype",
"name" : "iPhone SE (2nd generation)",
"identifier" : "com.apple.CoreSimulator.SimDeviceType.iPhone-SE--2nd-generation-",
"productFamily" : "iPhone"
},
{
"bundlePath" : "\/Applications\/Xcode.app\/Contents\/Developer\/Platforms\/iPhoneOS.platform\/Library\/Developer\/CoreSimulator\/Profiles\/DeviceTypes\/iPhone 12 mini.simdevicetype",
"name" : "iPhone 12 mini",
"identifier" : "com.apple.CoreSimulator.SimDeviceType.iPhone-12-mini",
"productFamily" : "iPhone"
},
{
"bundlePath" : "\/Applications\/Xcode.app\/Contents\/Developer\/Platforms\/iPhoneOS.platform\/Library\/Developer\/CoreSimulator\/Profiles\/DeviceTypes\/iPhone 12.simdevicetype",
"name" : "iPhone 12",
"identifier" : "com.apple.CoreSimulator.SimDeviceType.iPhone-12",
"productFamily" : "iPhone"
},
{
"bundlePath" : "\/Applications\/Xcode.app\/Contents\/Developer\/Platforms\/iPhoneOS.platform\/Library\/Developer\/CoreSimulator\/Profiles\/DeviceTypes\/iPhone 12 Pro.simdevicetype",
"name" : "iPhone 12 Pro",
"identifier" : "com.apple.CoreSimulator.SimDeviceType.iPhone-12-Pro",
"productFamily" : "iPhone"
},
{
"bundlePath" : "\/Applications\/Xcode.app\/Contents\/Developer\/Platforms\/iPhoneOS.platform\/Library\/Developer\/CoreSimulator\/Profiles\/DeviceTypes\/iPhone 12 Pro Max.simdevicetype",
"name" : "iPhone 12 Pro Max",
"identifier" : "com.apple.CoreSimulator.SimDeviceType.iPhone-12-Pro-Max",
"productFamily" : "iPhone"
},
{
"bundlePath" : "\/Applications\/Xcode.app\/Contents\/Developer\/Platforms\/iPhoneOS.platform\/Library\/Developer\/CoreSimulator\/Profiles\/DeviceTypes\/iPod touch (7th generation).simdevicetype",
"name" : "iPod touch (7th generation)",
"identifier" : "com.apple.CoreSimulator.SimDeviceType.iPod-touch--7th-generation-",
"productFamily" : "iPhone"
},
{
"bundlePath" : "\/Applications\/Xcode.app\/Contents\/Developer\/Platforms\/iPhoneOS.platform\/Library\/Developer\/CoreSimulator\/Profiles\/DeviceTypes\/iPad mini 4.simdevicetype",
"name" : "iPad mini 4",
"identifier" : "com.apple.CoreSimulator.SimDeviceType.iPad-mini-4",
"productFamily" : "iPad"
},
{
"bundlePath" : "\/Applications\/Xcode.app\/Contents\/Developer\/Platforms\/iPhoneOS.platform\/Library\/Developer\/CoreSimulator\/Profiles\/DeviceTypes\/iPad Air 2.simdevicetype",
"name" : "iPad Air 2",
"identifier" : "com.apple.CoreSimulator.SimDeviceType.iPad-Air-2",
"productFamily" : "iPad"
},
{
"bundlePath" : "\/Applications\/Xcode.app\/Contents\/Developer\/Platforms\/iPhoneOS.platform\/Library\/Developer\/CoreSimulator\/Profiles\/DeviceTypes\/iPad Pro (9.7-inch).simdevicetype",
"name" : "iPad Pro (9.7-inch)",
"identifier" : "com.apple.CoreSimulator.SimDeviceType.iPad-Pro--9-7-inch-",
"productFamily" : "iPad"
},
{
"bundlePath" : "\/Applications\/Xcode.app\/Contents\/Developer\/Platforms\/iPhoneOS.platform\/Library\/Developer\/CoreSimulator\/Profiles\/DeviceTypes\/iPad Pro (12.9-inch) (1st generation).simdevicetype",
"name" : "iPad Pro (12.9-inch) (1st generation)",
"identifier" : "com.apple.CoreSimulator.SimDeviceType.iPad-Pro",
"productFamily" : "iPad"
},
{
"bundlePath" : "\/Applications\/Xcode.app\/Contents\/Developer\/Platforms\/iPhoneOS.platform\/Library\/Developer\/CoreSimulator\/Profiles\/DeviceTypes\/iPad (5th generation).simdevicetype",
"name" : "iPad (5th generation)",
"identifier" : "com.apple.CoreSimulator.SimDeviceType.iPad--5th-generation-",
"productFamily" : "iPad"
},
{
"bundlePath" : "\/Applications\/Xcode.app\/Contents\/Developer\/Platforms\/iPhoneOS.platform\/Library\/Developer\/CoreSimulator\/Profiles\/DeviceTypes\/iPad Pro (12.9-inch) (2nd generation).simdevicetype",
"name" : "iPad Pro (12.9-inch) (2nd generation)",
"identifier" : "com.apple.CoreSimulator.SimDeviceType.iPad-Pro--12-9-inch---2nd-generation-",
"productFamily" : "iPad"
},
{
"bundlePath" : "\/Applications\/Xcode.app\/Contents\/Developer\/Platforms\/iPhoneOS.platform\/Library\/Developer\/CoreSimulator\/Profiles\/DeviceTypes\/iPad Pro (10.5-inch).simdevicetype",
"name" : "iPad Pro (10.5-inch)",
"identifier" : "com.apple.CoreSimulator.SimDeviceType.iPad-Pro--10-5-inch-",
"productFamily" : "iPad"
},
{
"bundlePath" : "\/Applications\/Xcode.app\/Contents\/Developer\/Platforms\/iPhoneOS.platform\/Library\/Developer\/CoreSimulator\/Profiles\/DeviceTypes\/iPad (6th generation).simdevicetype",
"name" : "iPad (6th generation)",
"identifier" : "com.apple.CoreSimulator.SimDeviceType.iPad--6th-generation-",
"productFamily" : "iPad"
},
{
"bundlePath" : "\/Applications\/Xcode.app\/Contents\/Developer\/Platforms\/iPhoneOS.platform\/Library\/Developer\/CoreSimulator\/Profiles\/DeviceTypes\/iPad (7th generation).simdevicetype",
"name" : "iPad (7th generation)",
"identifier" : "com.apple.CoreSimulator.SimDeviceType.iPad--7th-generation-",
"productFamily" : "iPad"
},
{
"bundlePath" : "\/Applications\/Xcode.app\/Contents\/Developer\/Platforms\/iPhoneOS.platform\/Library\/Developer\/CoreSimulator\/Profiles\/DeviceTypes\/iPad Pro (11-inch) (1st generation).simdevicetype",
"name" : "iPad Pro (11-inch) (1st generation)",
"identifier" : "com.apple.CoreSimulator.SimDeviceType.iPad-Pro--11-inch-",
"productFamily" : "iPad"
},
{
"bundlePath" : "\/Applications\/Xcode.app\/Contents\/Developer\/Platforms\/iPhoneOS.platform\/Library\/Developer\/CoreSimulator\/Profiles\/DeviceTypes\/iPad Pro (12.9-inch) (3rd generation).simdevicetype",
"name" : "iPad Pro (12.9-inch) (3rd generation)",
"identifier" : "com.apple.CoreSimulator.SimDeviceType.iPad-Pro--12-9-inch---3rd-generation-",
"productFamily" : "iPad"
},
{
"bundlePath" : "\/Applications\/Xcode.app\/Contents\/Developer\/Platforms\/iPhoneOS.platform\/Library\/Developer\/CoreSimulator\/Profiles\/DeviceTypes\/iPad Pro (11-inch) (2nd generation).simdevicetype",
"name" : "iPad Pro (11-inch) (2nd generation)",
"identifier" : "com.apple.CoreSimulator.SimDeviceType.iPad-Pro--11-inch---2nd-generation-",
"productFamily" : "iPad"
},
{
"bundlePath" : "\/Applications\/Xcode.app\/Contents\/Developer\/Platforms\/iPhoneOS.platform\/Library\/Developer\/CoreSimulator\/Profiles\/DeviceTypes\/iPad Pro (12.9-inch) (4th generation).simdevicetype",
"name" : "iPad Pro (12.9-inch) (4th generation)",
"identifier" : "com.apple.CoreSimulator.SimDeviceType.iPad-Pro--12-9-inch---4th-generation-",
"productFamily" : "iPad"
},
{
"bundlePath" : "\/Applications\/Xcode.app\/Contents\/Developer\/Platforms\/iPhoneOS.platform\/Library\/Developer\/CoreSimulator\/Profiles\/DeviceTypes\/iPad mini (5th generation).simdevicetype",
"name" : "iPad mini (5th generation)",
"identifier" : "com.apple.CoreSimulator.SimDeviceType.iPad-mini--5th-generation-",
"productFamily" : "iPad"
},
{
"bundlePath" : "\/Applications\/Xcode.app\/Contents\/Developer\/Platforms\/iPhoneOS.platform\/Library\/Developer\/CoreSimulator\/Profiles\/DeviceTypes\/iPad Air (3rd generation).simdevicetype",
"name" : "iPad Air (3rd generation)",
"identifier" : "com.apple.CoreSimulator.SimDeviceType.iPad-Air--3rd-generation-",
"productFamily" : "iPad"
},
{
"bundlePath" : "\/Applications\/Xcode.app\/Contents\/Developer\/Platforms\/iPhoneOS.platform\/Library\/Developer\/CoreSimulator\/Profiles\/DeviceTypes\/iPad (8th generation).simdevicetype",
"name" : "iPad (8th generation)",
"identifier" : "com.apple.CoreSimulator.SimDeviceType.iPad--8th-generation-",
"productFamily" : "iPad"
},
{
"bundlePath" : "\/Applications\/Xcode.app\/Contents\/Developer\/Platforms\/iPhoneOS.platform\/Library\/Developer\/CoreSimulator\/Profiles\/DeviceTypes\/iPad Air (4th generation).simdevicetype",
"name" : "iPad Air (4th generation)",
"identifier" : "com.apple.CoreSimulator.SimDeviceType.iPad-Air--4th-generation-",
"productFamily" : "iPad"
},
{
"bundlePath" : "\/Applications\/Xcode.app\/Contents\/Developer\/Platforms\/iPhoneOS.platform\/Library\/Developer\/CoreSimulator\/Profiles\/DeviceTypes\/iPad Pro (11-inch) (3rd generation).simdevicetype",
"name" : "iPad Pro (11-inch) (3rd generation)",
"identifier" : "com.apple.CoreSimulator.SimDeviceType.iPad-Pro-11-inch-3rd-generation",
"productFamily" : "iPad"
},
{
"bundlePath" : "\/Applications\/Xcode.app\/Contents\/Developer\/Platforms\/iPhoneOS.platform\/Library\/Developer\/CoreSimulator\/Profiles\/DeviceTypes\/iPad Pro (12.9-inch) (5th generation).simdevicetype",
"name" : "iPad Pro (12.9-inch) (5th generation)",
"identifier" : "com.apple.CoreSimulator.SimDeviceType.iPad-Pro-12-9-inch-5th-generation",
"productFamily" : "iPad"
}
],
"name" : "iOS 14.5"
},
"dataPath" : "\/Users\/user\/Library\/Developer\/CoreSimulator\/Devices\/71B71E3A-5463-487F-A9F5-4D8DF1FF5975\/data",
"logPath" : "\/Users\/user\/Library\/Logs\/CoreSimulator\/71B71E3A-5463-487F-A9F5-4D8DF1FF5975",
"udid" : "71B71E3A-5463-487F-A9F5-4D8DF1FF5975",
"isAvailable" : true,
"deviceType" : {
"minRuntimeVersion" : 917760,
"bundlePath" : "\/Applications\/Xcode.app\/Contents\/Developer\/Platforms\/iPhoneOS.platform\/Library\/Developer\/CoreSimulator\/Profiles\/DeviceTypes\/iPhone 12 Pro Max.simdevicetype",
"maxRuntimeVersion" : 4294967295,
"name" : "iPhone 12 Pro Max",
"identifier" : "com.apple.CoreSimulator.SimDeviceType.iPhone-12-Pro-Max",
"productFamily" : "iPhone"
},
"deviceTypeIdentifier" : "com.apple.CoreSimulator.SimDeviceType.iPhone-12-Pro-Max",
"state" : "Booted",
"name" : "iPhone 12 Pro Max"
}
]
detox[64255] DEBUG: [EXEC_CMD, #1] applesimutils --list --byId 71B71E3A-5463-487F-A9F5-4D8DF1FF5975 --maxResults 1
detox[64255] TRACE: [EXEC_SUCCESS, #1] [
{
"os" : {
"bundlePath" : "\/Applications\/Xcode.app\/Contents\/Developer\/Platforms\/iPhoneOS.platform\/Library\/Developer\/CoreSimulator\/Profiles\/Runtimes\/iOS.simruntime",
"buildversion" : "18E182",
"runtimeRoot" : "\/Applications\/Xcode.app\/Contents\/Developer\/Platforms\/iPhoneOS.platform\/Library\/Developer\/CoreSimulator\/Profiles\/Runtimes\/iOS.simruntime\/Contents\/Resources\/RuntimeRoot",
"identifier" : "com.apple.CoreSimulator.SimRuntime.iOS-14-5",
"version" : "14.5",
"isAvailable" : true,
"supportedDeviceTypes" : [
{
"bundlePath" : "\/Applications\/Xcode.app\/Contents\/Developer\/Platforms\/iPhoneOS.platform\/Library\/Developer\/CoreSimulator\/Profiles\/DeviceTypes\/iPhone 6s.simdevicetype",
"name" : "iPhone 6s",
"identifier" : "com.apple.CoreSimulator.SimDeviceType.iPhone-6s",
"productFamily" : "iPhone"
},
{
"bundlePath" : "\/Applications\/Xcode.app\/Contents\/Developer\/Platforms\/iPhoneOS.platform\/Library\/Developer\/CoreSimulator\/Profiles\/DeviceTypes\/iPhone 6s Plus.simdevicetype",
"name" : "iPhone 6s Plus",
"identifier" : "com.apple.CoreSimulator.SimDeviceType.iPhone-6s-Plus",
"productFamily" : "iPhone"
},
{
"bundlePath" : "\/Applications\/Xcode.app\/Contents\/Developer\/Platforms\/iPhoneOS.platform\/Library\/Developer\/CoreSimulator\/Profiles\/DeviceTypes\/iPhone SE (1st generation).simdevicetype",
"name" : "iPhone SE (1st generation)",
"identifier" : "com.apple.CoreSimulator.SimDeviceType.iPhone-SE",
"productFamily" : "iPhone"
},
{
"bundlePath" : "\/Applications\/Xcode.app\/Contents\/Developer\/Platforms\/iPhoneOS.platform\/Library\/Developer\/CoreSimulator\/Profiles\/DeviceTypes\/iPhone 7.simdevicetype",
"name" : "iPhone 7",
"identifier" : "com.apple.CoreSimulator.SimDeviceType.iPhone-7",
"productFamily" : "iPhone"
},
{
"bundlePath" : "\/Applications\/Xcode.app\/Contents\/Developer\/Platforms\/iPhoneOS.platform\/Library\/Developer\/CoreSimulator\/Profiles\/DeviceTypes\/iPhone 7 Plus.simdevicetype",
"name" : "iPhone 7 Plus",
"identifier" : "com.apple.CoreSimulator.SimDeviceType.iPhone-7-Plus",
"productFamily" : "iPhone"
},
{
"bundlePath" : "\/Applications\/Xcode.app\/Contents\/Developer\/Platforms\/iPhoneOS.platform\/Library\/Developer\/CoreSimulator\/Profiles\/DeviceTypes\/iPhone 8.simdevicetype",
"name" : "iPhone 8",
"identifier" : "com.apple.CoreSimulator.SimDeviceType.iPhone-8",
"productFamily" : "iPhone"
},
{
"bundlePath" : "\/Applications\/Xcode.app\/Contents\/Developer\/Platforms\/iPhoneOS.platform\/Library\/Developer\/CoreSimulator\/Profiles\/DeviceTypes\/iPhone 8 Plus.simdevicetype",
"name" : "iPhone 8 Plus",
"identifier" : "com.apple.CoreSimulator.SimDeviceType.iPhone-8-Plus",
"productFamily" : "iPhone"
},
{
"bundlePath" : "\/Applications\/Xcode.app\/Contents\/Developer\/Platforms\/iPhoneOS.platform\/Library\/Developer\/CoreSimulator\/Profiles\/DeviceTypes\/iPhone X.simdevicetype",
"name" : "iPhone X",
"identifier" : "com.apple.CoreSimulator.SimDeviceType.iPhone-X",
"productFamily" : "iPhone"
},
{
"bundlePath" : "\/Applications\/Xcode.app\/Contents\/Developer\/Platforms\/iPhoneOS.platform\/Library\/Developer\/CoreSimulator\/Profiles\/DeviceTypes\/iPhone Xs.simdevicetype",
"name" : "iPhone Xs",
"identifier" : "com.apple.CoreSimulator.SimDeviceType.iPhone-XS",
"productFamily" : "iPhone"
},
{
"bundlePath" : "\/Applications\/Xcode.app\/Contents\/Developer\/Platforms\/iPhoneOS.platform\/Library\/Developer\/CoreSimulator\/Profiles\/DeviceTypes\/iPhone Xs Max.simdevicetype",
"name" : "iPhone Xs Max",
"identifier" : "com.apple.CoreSimulator.SimDeviceType.iPhone-XS-Max",
"productFamily" : "iPhone"
},
{
"bundlePath" : "\/Applications\/Xcode.app\/Contents\/Developer\/Platforms\/iPhoneOS.platform\/Library\/Developer\/CoreSimulator\/Profiles\/DeviceTypes\/iPhone Xʀ.simdevicetype",
"name" : "iPhone Xʀ",
"identifier" : "com.apple.CoreSimulator.SimDeviceType.iPhone-XR",
"productFamily" : "iPhone"
},
{
"bundlePath" : "\/Applications\/Xcode.app\/Contents\/Developer\/Platforms\/iPhoneOS.platform\/Library\/Developer\/CoreSimulator\/Profiles\/DeviceTypes\/iPhone 11.simdevicetype",
"name" : "iPhone 11",
"identifier" : "com.apple.CoreSimulator.SimDeviceType.iPhone-11",
"productFamily" : "iPhone"
},
{
"bundlePath" : "\/Applications\/Xcode.app\/Contents\/Developer\/Platforms\/iPhoneOS.platform\/Library\/Developer\/CoreSimulator\/Profiles\/DeviceTypes\/iPhone 11 Pro.simdevicetype",
"name" : "iPhone 11 Pro",
"identifier" : "com.apple.CoreSimulator.SimDeviceType.iPhone-11-Pro",
"productFamily" : "iPhone"
},
{
"bundlePath" : "\/Applications\/Xcode.app\/Contents\/Developer\/Platforms\/iPhoneOS.platform\/Library\/Developer\/CoreSimulator\/Profiles\/DeviceTypes\/iPhone 11 Pro Max.simdevicetype",
"name" : "iPhone 11 Pro Max",
"identifier" : "com.apple.CoreSimulator.SimDeviceType.iPhone-11-Pro-Max",
"productFamily" : "iPhone"
},
{
"bundlePath" : "\/Applications\/Xcode.app\/Contents\/Developer\/Platforms\/iPhoneOS.platform\/Library\/Developer\/CoreSimulator\/Profiles\/DeviceTypes\/iPhone SE (2nd generation).simdevicetype",
"name" : "iPhone SE (2nd generation)",
"identifier" : "com.apple.CoreSimulator.SimDeviceType.iPhone-SE--2nd-generation-",
"productFamily" : "iPhone"
},
{
"bundlePath" : "\/Applications\/Xcode.app\/Contents\/Developer\/Platforms\/iPhoneOS.platform\/Library\/Developer\/CoreSimulator\/Profiles\/DeviceTypes\/iPhone 12 mini.simdevicetype",
"name" : "iPhone 12 mini",
"identifier" : "com.apple.CoreSimulator.SimDeviceType.iPhone-12-mini",
"productFamily" : "iPhone"
},
{
"bundlePath" : "\/Applications\/Xcode.app\/Contents\/Developer\/Platforms\/iPhoneOS.platform\/Library\/Developer\/CoreSimulator\/Profiles\/DeviceTypes\/iPhone 12.simdevicetype",
"name" : "iPhone 12",
"identifier" : "com.apple.CoreSimulator.SimDeviceType.iPhone-12",
"productFamily" : "iPhone"
},
{
"bundlePath" : "\/Applications\/Xcode.app\/Contents\/Developer\/Platforms\/iPhoneOS.platform\/Library\/Developer\/CoreSimulator\/Profiles\/DeviceTypes\/iPhone 12 Pro.simdevicetype",
"name" : "iPhone 12 Pro",
"identifier" : "com.apple.CoreSimulator.SimDeviceType.iPhone-12-Pro",
"productFamily" : "iPhone"
},
{
"bundlePath" : "\/Applications\/Xcode.app\/Contents\/Developer\/Platforms\/iPhoneOS.platform\/Library\/Developer\/CoreSimulator\/Profiles\/DeviceTypes\/iPhone 12 Pro Max.simdevicetype",
"name" : "iPhone 12 Pro Max",
"identifier" : "com.apple.CoreSimulator.SimDeviceType.iPhone-12-Pro-Max",
"productFamily" : "iPhone"
},
{
"bundlePath" : "\/Applications\/Xcode.app\/Contents\/Developer\/Platforms\/iPhoneOS.platform\/Library\/Developer\/CoreSimulator\/Profiles\/DeviceTypes\/iPod touch (7th generation).simdevicetype",
"name" : "iPod touch (7th generation)",
"identifier" : "com.apple.CoreSimulator.SimDeviceType.iPod-touch--7th-generation-",
"productFamily" : "iPhone"
},
{
"bundlePath" : "\/Applications\/Xcode.app\/Contents\/Developer\/Platforms\/iPhoneOS.platform\/Library\/Developer\/CoreSimulator\/Profiles\/DeviceTypes\/iPad mini 4.simdevicetype",
"name" : "iPad mini 4",
"identifier" : "com.apple.CoreSimulator.SimDeviceType.iPad-mini-4",
"productFamily" : "iPad"
},
{
"bundlePath" : "\/Applications\/Xcode.app\/Contents\/Developer\/Platforms\/iPhoneOS.platform\/Library\/Developer\/CoreSimulator\/Profiles\/DeviceTypes\/iPad Air 2.simdevicetype",
"name" : "iPad Air 2",
"identifier" : "com.apple.CoreSimulator.SimDeviceType.iPad-Air-2",
"productFamily" : "iPad"
},
{
"bundlePath" : "\/Applications\/Xcode.app\/Contents\/Developer\/Platforms\/iPhoneOS.platform\/Library\/Developer\/CoreSimulator\/Profiles\/DeviceTypes\/iPad Pro (9.7-inch).simdevicetype",
"name" : "iPad Pro (9.7-inch)",
"identifier" : "com.apple.CoreSimulator.SimDeviceType.iPad-Pro--9-7-inch-",
"productFamily" : "iPad"
},
{
"bundlePath" : "\/Applications\/Xcode.app\/Contents\/Developer\/Platforms\/iPhoneOS.platform\/Library\/Developer\/CoreSimulator\/Profiles\/DeviceTypes\/iPad Pro (12.9-inch) (1st generation).simdevicetype",
"name" : "iPad Pro (12.9-inch) (1st generation)",
"identifier" : "com.apple.CoreSimulator.SimDeviceType.iPad-Pro",
"productFamily" : "iPad"
},
{
"bundlePath" : "\/Applications\/Xcode.app\/Contents\/Developer\/Platforms\/iPhoneOS.platform\/Library\/Developer\/CoreSimulator\/Profiles\/DeviceTypes\/iPad (5th generation).simdevicetype",
"name" : "iPad (5th generation)",
"identifier" : "com.apple.CoreSimulator.SimDeviceType.iPad--5th-generation-",
"productFamily" : "iPad"
},
{
"bundlePath" : "\/Applications\/Xcode.app\/Contents\/Developer\/Platforms\/iPhoneOS.platform\/Library\/Developer\/CoreSimulator\/Profiles\/DeviceTypes\/iPad Pro (12.9-inch) (2nd generation).simdevicetype",
"name" : "iPad Pro (12.9-inch) (2nd generation)",
"identifier" : "com.apple.CoreSimulator.SimDeviceType.iPad-Pro--12-9-inch---2nd-generation-",
"productFamily" : "iPad"
},
{
"bundlePath" : "\/Applications\/Xcode.app\/Contents\/Developer\/Platforms\/iPhoneOS.platform\/Library\/Developer\/CoreSimulator\/Profiles\/DeviceTypes\/iPad Pro (10.5-inch).simdevicetype",
"name" : "iPad Pro (10.5-inch)",
"identifier" : "com.apple.CoreSimulator.SimDeviceType.iPad-Pro--10-5-inch-",
"productFamily" : "iPad"
},
{
"bundlePath" : "\/Applications\/Xcode.app\/Contents\/Developer\/Platforms\/iPhoneOS.platform\/Library\/Developer\/CoreSimulator\/Profiles\/DeviceTypes\/iPad (6th generation).simdevicetype",
"name" : "iPad (6th generation)",
"identifier" : "com.apple.CoreSimulator.SimDeviceType.iPad--6th-generation-",
"productFamily" : "iPad"
},
{
"bundlePath" : "\/Applications\/Xcode.app\/Contents\/Developer\/Platforms\/iPhoneOS.platform\/Library\/Developer\/CoreSimulator\/Profiles\/DeviceTypes\/iPad (7th generation).simdevicetype",
"name" : "iPad (7th generation)",
"identifier" : "com.apple.CoreSimulator.SimDeviceType.iPad--7th-generation-",
"productFamily" : "iPad"
},
{
"bundlePath" : "\/Applications\/Xcode.app\/Contents\/Developer\/Platforms\/iPhoneOS.platform\/Library\/Developer\/CoreSimulator\/Profiles\/DeviceTypes\/iPad Pro (11-inch) (1st generation).simdevicetype",
"name" : "iPad Pro (11-inch) (1st generation)",
"identifier" : "com.apple.CoreSimulator.SimDeviceType.iPad-Pro--11-inch-",
"productFamily" : "iPad"
},
{
"bundlePath" : "\/Applications\/Xcode.app\/Contents\/Developer\/Platforms\/iPhoneOS.platform\/Library\/Developer\/CoreSimulator\/Profiles\/DeviceTypes\/iPad Pro (12.9-inch) (3rd generation).simdevicetype",
"name" : "iPad Pro (12.9-inch) (3rd generation)",
"identifier" : "com.apple.CoreSimulator.SimDeviceType.iPad-Pro--12-9-inch---3rd-generation-",
"productFamily" : "iPad"
},
{
"bundlePath" : "\/Applications\/Xcode.app\/Contents\/Developer\/Platforms\/iPhoneOS.platform\/Library\/Developer\/CoreSimulator\/Profiles\/DeviceTypes\/iPad Pro (11-inch) (2nd generation).simdevicetype",
"name" : "iPad Pro (11-inch) (2nd generation)",
"identifier" : "com.apple.CoreSimulator.SimDeviceType.iPad-Pro--11-inch---2nd-generation-",
"productFamily" : "iPad"
},
{
"bundlePath" : "\/Applications\/Xcode.app\/Contents\/Developer\/Platforms\/iPhoneOS.platform\/Library\/Developer\/CoreSimulator\/Profiles\/DeviceTypes\/iPad Pro (12.9-inch) (4th generation).simdevicetype",
"name" : "iPad Pro (12.9-inch) (4th generation)",
"identifier" : "com.apple.CoreSimulator.SimDeviceType.iPad-Pro--12-9-inch---4th-generation-",
"productFamily" : "iPad"
},
{
"bundlePath" : "\/Applications\/Xcode.app\/Contents\/Developer\/Platforms\/iPhoneOS.platform\/Library\/Developer\/CoreSimulator\/Profiles\/DeviceTypes\/iPad mini (5th generation).simdevicetype",
"name" : "iPad mini (5th generation)",
"identifier" : "com.apple.CoreSimulator.SimDeviceType.iPad-mini--5th-generation-",
"productFamily" : "iPad"
},
{
"bundlePath" : "\/Applications\/Xcode.app\/Contents\/Developer\/Platforms\/iPhoneOS.platform\/Library\/Developer\/CoreSimulator\/Profiles\/DeviceTypes\/iPad Air (3rd generation).simdevicetype",
"name" : "iPad Air (3rd generation)",
"identifier" : "com.apple.CoreSimulator.SimDeviceType.iPad-Air--3rd-generation-",
"productFamily" : "iPad"
},
{
"bundlePath" : "\/Applications\/Xcode.app\/Contents\/Developer\/Platforms\/iPhoneOS.platform\/Library\/Developer\/CoreSimulator\/Profiles\/DeviceTypes\/iPad (8th generation).simdevicetype",
"name" : "iPad (8th generation)",
"identifier" : "com.apple.CoreSimulator.SimDeviceType.iPad--8th-generation-",
"productFamily" : "iPad"
},
{
"bundlePath" : "\/Applications\/Xcode.app\/Contents\/Developer\/Platforms\/iPhoneOS.platform\/Library\/Developer\/CoreSimulator\/Profiles\/DeviceTypes\/iPad Air (4th generation).simdevicetype",
"name" : "iPad Air (4th generation)",
"identifier" : "com.apple.CoreSimulator.SimDeviceType.iPad-Air--4th-generation-",
"productFamily" : "iPad"
},
{
"bundlePath" : "\/Applications\/Xcode.app\/Contents\/Developer\/Platforms\/iPhoneOS.platform\/Library\/Developer\/CoreSimulator\/Profiles\/DeviceTypes\/iPad Pro (11-inch) (3rd generation).simdevicetype",
"name" : "iPad Pro (11-inch) (3rd generation)",
"identifier" : "com.apple.CoreSimulator.SimDeviceType.iPad-Pro-11-inch-3rd-generation",
"productFamily" : "iPad"
},
{
"bundlePath" : "\/Applications\/Xcode.app\/Contents\/Developer\/Platforms\/iPhoneOS.platform\/Library\/Developer\/CoreSimulator\/Profiles\/DeviceTypes\/iPad Pro (12.9-inch) (5th generation).simdevicetype",
"name" : "iPad Pro (12.9-inch) (5th generation)",
"identifier" : "com.apple.CoreSimulator.SimDeviceType.iPad-Pro-12-9-inch-5th-generation",
"productFamily" : "iPad"
}
],
"name" : "iOS 14.5"
},
"dataPath" : "\/Users\/user\/Library\/Developer\/CoreSimulator\/Devices\/71B71E3A-5463-487F-A9F5-4D8DF1FF5975\/data",
"logPath" : "\/Users\/user\/Library\/Logs\/CoreSimulator\/71B71E3A-5463-487F-A9F5-4D8DF1FF5975",
"udid" : "71B71E3A-5463-487F-A9F5-4D8DF1FF5975",
"isAvailable" : true,
"deviceType" : {
"minRuntimeVersion" : 917760,
"bundlePath" : "\/Applications\/Xcode.app\/Contents\/Developer\/Platforms\/iPhoneOS.platform\/Library\/Developer\/CoreSimulator\/Profiles\/DeviceTypes\/iPhone 12 Pro Max.simdevicetype",
"maxRuntimeVersion" : 4294967295,
"name" : "iPhone 12 Pro Max",
"identifier" : "com.apple.CoreSimulator.SimDeviceType.iPhone-12-Pro-Max",
"productFamily" : "iPhone"
},
"deviceTypeIdentifier" : "com.apple.CoreSimulator.SimDeviceType.iPhone-12-Pro-Max",
"state" : "Booted",
"name" : "iPhone 12 Pro Max"
}
]
detox[64255] TRACE: [ARTIFACTS_LIFECYCLE] artifactsManager.onBootDevice({
coldBoot: false,
deviceId: '71B71E3A-5463-487F-A9F5-4D8DF1FF5975',
type: 'iPhone 12 Pro Max'
})
detox[64255] TRACE: [ARTIFACTS_LIFECYCLE] artifactsManager.onBeforeTerminateApp({
deviceId: '71B71E3A-5463-487F-A9F5-4D8DF1FF5975',
bundleId: 'com.example.app'
})
detox[64255] DEBUG: [EXEC_CMD, #2] /usr/bin/xcrun simctl terminate 71B71E3A-5463-487F-A9F5-4D8DF1FF5975 com.example.app
detox[64255] DEBUG: [EXEC_TRY, #2] Terminating com.example.app...
detox[64255] TRACE: [EXEC_SUCCESS, #2]
detox[64255] DEBUG: [EXEC_SUCCESS, #2] com.example.app terminated
detox[64255] TRACE: [ARTIFACTS_LIFECYCLE] artifactsManager.onTerminateApp({
deviceId: '71B71E3A-5463-487F-A9F5-4D8DF1FF5975',
bundleId: 'com.example.app'
})
detox[64255] TRACE: [ARTIFACTS_LIFECYCLE] artifactsManager.onBeforeUninstallApp({
deviceId: '71B71E3A-5463-487F-A9F5-4D8DF1FF5975',
bundleId: 'com.example.app'
})
detox[64255] DEBUG: [EXEC_CMD, #3] /usr/bin/xcrun simctl uninstall 71B71E3A-5463-487F-A9F5-4D8DF1FF5975 com.example.app
detox[64255] DEBUG: [EXEC_TRY, #3] Uninstalling com.example.app...
detox[64255] TRACE: [EXEC_SUCCESS, #3]
detox[64255] DEBUG: [EXEC_SUCCESS, #3] com.example.app uninstalled
detox[64255] DEBUG: [EXEC_CMD, #4] /usr/bin/xcrun simctl install 71B71E3A-5463-487F-A9F5-4D8DF1FF5975 "/Users/user/Documents/MyApp/repos/react-native-app/ios/build/Build/Products/Debug-iphonesimulator/My App.app"
detox[64255] DEBUG: [EXEC_TRY, #4] Installing /Users/user/Documents/MyApp/repos/react-native-app/ios/build/Build/Products/Debug-iphonesimulator/My App.app...
detox[64255] TRACE: [EXEC_SUCCESS, #4]
detox[64255] DEBUG: [EXEC_SUCCESS, #4] /Users/user/Documents/MyApp/repos/react-native-app/ios/build/Build/Products/Debug-iphonesimulator/My App.app installed
ROOT_DESCRIBE_BLOCK[64255] TRACE: [ARTIFACTS_LIFECYCLE] artifactsManager.onRunDescribeStart({ name: 'ROOT_DESCRIBE_BLOCK' })
Authentication[64255] TRACE: [ARTIFACTS_LIFECYCLE] artifactsManager.onRunDescribeStart({ name: 'Authentication' })
detox[64255] INFO: Authentication is assigned to 71B71E3A-5463-487F-A9F5-4D8DF1FF5975 {"type":"iPhone 12 Pro Max"}
Where email and password are valid[64255] TRACE: [ARTIFACTS_LIFECYCLE] artifactsManager.onRunDescribeStart({ name: 'Where email and password are valid' })
detox[64255] INFO: Authentication > Where email and password are valid: Should login successfully to the dashboard
detox[64255] TRACE: [DETOX_BEFORE_EACH] running test: "Authentication Where email and password are valid Should login successfully to the dashboard"
detox[64255] TRACE: [ARTIFACTS_LIFECYCLE] artifactsManager.onTestStart({
title: 'Should login successfully to the dashboard',
fullName: 'Authentication Where email and password are valid Should login successfully to the dashboard',
status: 'running',
invocations: 1
})
detox[64255] INFO: at e2e/auth.e2e.ts:17:21
BEFORE
detox[64255] TRACE: [ARTIFACTS_LIFECYCLE] artifactsManager.onBeforeTerminateApp({
deviceId: '71B71E3A-5463-487F-A9F5-4D8DF1FF5975',
bundleId: 'com.example.app'
})
detox[64255] DEBUG: [EXEC_CMD, #5] /usr/bin/xcrun simctl terminate 71B71E3A-5463-487F-A9F5-4D8DF1FF5975 com.example.app
detox[64255] DEBUG: [EXEC_TRY, #5] Terminating com.example.app...
detox[64255] TRACE: [EXEC_SUCCESS, #5]
detox[64255] DEBUG: [EXEC_SUCCESS, #5] com.example.app terminated
detox[64255] TRACE: [ARTIFACTS_LIFECYCLE] artifactsManager.onTerminateApp({
deviceId: '71B71E3A-5463-487F-A9F5-4D8DF1FF5975',
bundleId: 'com.example.app'
})
detox[64255] TRACE: [ARTIFACTS_LIFECYCLE] artifactsManager.onBeforeUninstallApp({
deviceId: '71B71E3A-5463-487F-A9F5-4D8DF1FF5975',
bundleId: 'com.example.app'
})
detox[64255] DEBUG: [EXEC_CMD, #6] /usr/bin/xcrun simctl uninstall 71B71E3A-5463-487F-A9F5-4D8DF1FF5975 com.example.app
detox[64255] DEBUG: [EXEC_TRY, #6] Uninstalling com.example.app...
detox[64255] TRACE: [EXEC_SUCCESS, #6]
detox[64255] DEBUG: [EXEC_SUCCESS, #6] com.example.app uninstalled
detox[64255] DEBUG: [EXEC_CMD, #7] /usr/bin/xcrun simctl install 71B71E3A-5463-487F-A9F5-4D8DF1FF5975 "/Users/user/Documents/MyApp/repos/react-native-app/ios/build/Build/Products/Debug-iphonesimulator/My App.app"
detox[64255] DEBUG: [EXEC_TRY, #7] Installing /Users/user/Documents/MyApp/repos/react-native-app/ios/build/Build/Products/Debug-iphonesimulator/My App.app...
detox[64255] TRACE: [EXEC_SUCCESS, #7]
detox[64255] DEBUG: [EXEC_SUCCESS, #7] /Users/user/Documents/MyApp/repos/react-native-app/ios/build/Build/Products/Debug-iphonesimulator/My App.app installed
detox[64255] DEBUG: [EXEC_CMD, #8] applesimutils --byId 71B71E3A-5463-487F-A9F5-4D8DF1FF5975 --bundle com.example.app --restartSB --setPermissions notifications=YES,userTracking=YES
detox[64255] DEBUG: [EXEC_TRY, #8] Trying to set permissions...
detox[64255] TRACE: [EXEC_SUCCESS, #8]
detox[64255] DEBUG: [EXEC_SUCCESS, #8] Permissions are set
detox[64255] TRACE: [ARTIFACTS_LIFECYCLE] artifactsManager.onBeforeLaunchApp({
bundleId: 'com.example.app',
deviceId: '71B71E3A-5463-487F-A9F5-4D8DF1FF5975',
launchArgs: {
detoxServer: 'ws://localhost:51438',
detoxSessionId: '6a1e2a74-1d3a-a3fc-1df3-3fc2df5223a9'
}
})
detox[64255] DEBUG: [EXEC_CMD, #9] SIMCTL_CHILD_DYLD_INSERT_LIBRARIES="/Users/user/Library/Detox/ios/841dc0275294a01b39d7594ae5d2bf25a7b0bd45/Detox.framework/Detox" /usr/bin/xcrun simctl launch 71B71E3A-5463-487F-A9F5-4D8DF1FF5975 com.example.app --args -detoxServer ws://localhost:51438 -detoxSessionId 6a1e2a74-1d3a-a3fc-1df3-3fc2df5223a9 -detoxDisableHierarchyDump YES
detox[64255] DEBUG: [EXEC_TRY, #9] Launching com.example.app...
detox[64255] TRACE: [EXEC_TRY_FAIL, #9] An error was encountered processing the command (domain=FBSOpenApplicationServiceErrorDomain, code=5):
The request to open "com.example.app" failed.
Unexpected error type.
Underlying error (domain=BSServiceConnectionErrorDomain, code=3):
The operation couldn’t be completed. (BSServiceConnectionErrorDomain error 3.)
detox[64255] DEBUG: [EXEC_TRY, #9] Launching com.example.app...
detox[64255] TRACE: [EXEC_SUCCESS, #9] com.example.app: 64318
detox[64255] DEBUG: [EXEC_CMD, #10] /usr/bin/xcrun simctl get_app_container 71B71E3A-5463-487F-A9F5-4D8DF1FF5975 com.example.app
detox[64255] TRACE: [EXEC_SUCCESS, #10] /Users/user/Library/Developer/CoreSimulator/Devices/71B71E3A-5463-487F-A9F5-4D8DF1FF5975/data/Containers/Bundle/Application/748A59A9-EB4C-4289-A74A-A00CEA6A1142/My App.app
detox[64255] INFO: [AppleSimUtils.js] com.example.app launched. To watch simulator logs, run:
/usr/bin/xcrun simctl spawn 71B71E3A-5463-487F-A9F5-4D8DF1FF5975 log stream --level debug --style compact --predicate 'process == "My App"'
detox[64318] TRACE: [ARTIFACTS_LIFECYCLE] artifactsManager.onLaunchApp({
bundleId: 'com.example.app',
deviceId: '71B71E3A-5463-487F-A9F5-4D8DF1FF5975',
launchArgs: {
detoxServer: 'ws://localhost:51438',
detoxSessionId: '6a1e2a74-1d3a-a3fc-1df3-3fc2df5223a9',
detoxDisableHierarchyDump: 'YES'
},
pid: 64318
})
detox[64255] DEBUG: [WSS_CONNECTION, #51450] registered a new connection.
detox[64255] TRACE: [WSS_GET_FROM, #51450] {"type":"login","params":{"sessionId":"6a1e2a74-1d3a-a3fc-1df3-3fc2df5223a9","role":"app"},"messageId":0}
detox[64255] TRACE: [WSS_SEND_TO, #app] {"type":"loginSuccess","params":{"testerConnected":true,"appConnected":true},"messageId":0}
detox[64255] TRACE: [SESSION_JOINED] app joined session 6a1e2a74-1d3a-a3fc-1df3-3fc2df5223a9
detox[64255] TRACE: [WSS_SEND_TO, #tester] {"type":"appConnected"}
detox[64255] TRACE: [WS_MESSAGE] {"type":"appConnected"}
detox[64255] TRACE: [WS_SEND] {"type":"isReady","params":{},"messageId":-1000}
detox[64255] TRACE: [WSS_GET_FROM, #tester] {"type":"isReady","params":{},"messageId":-1000}
detox[64255] TRACE: [WSS_SEND_TO, #app] {"type":"isReady","params":{},"messageId":-1000}
detox[64255] TRACE: [SESSION_TORN] app exited session 6a1e2a74-1d3a-a3fc-1df3-3fc2df5223a9
detox[64255] TRACE: [WSS_SEND_TO, #tester] {"type":"appDisconnected"}
detox[64255] TRACE: [WS_MESSAGE] {"type":"appDisconnected"}
detox[64255] TRACE: [ARTIFACTS_LIFECYCLE] artifactsManager.onHookFailure({
error: DetoxRuntimeError: The pending request #-1000 ("isReady") has been rejected due to the following error:
The app has unexpectedly disconnected from Detox server.
at processTicksAndRejections (internal/process/task_queues.js:93:5),
hook: 'beforeEach'
})
detox[64255] TRACE: [DETOX_AFTER_EACH] failed test: "Authentication Where email and password are valid Should login successfully to the dashboard"
detox[64255] TRACE: [ARTIFACTS_LIFECYCLE] artifactsManager.onTestDone({
title: 'Should login successfully to the dashboard',
fullName: 'Authentication Where email and password are valid Should login successfully to the dashboard',
status: 'failed',
invocations: 1,
timedOut: false
})
detox[64255] INFO: Authentication > Where email and password are valid: Should login successfully to the dashboard [FAIL]
Where email and password are valid[64255] TRACE: [ARTIFACTS_LIFECYCLE] artifactsManager.onRunDescribeFinish({ name: 'Where email and password are valid' })
Where email and password are invalid[64255] TRACE: [ARTIFACTS_LIFECYCLE] artifactsManager.onRunDescribeStart({ name: 'Where email and password are invalid' })
detox[64255] INFO: Authentication > Where email and password are invalid: Should login unsuccessfully and display an error
detox[64255] TRACE: [DETOX_BEFORE_EACH] running test: "Authentication Where email and password are invalid Should login unsuccessfully and display an error"
detox[64255] TRACE: [ARTIFACTS_LIFECYCLE] artifactsManager.onTestStart({
title: 'Should login unsuccessfully and display an error',
fullName: 'Authentication Where email and password are invalid Should login unsuccessfully and display an error',
status: 'running',
invocations: 1
})
detox[64255] INFO: at e2e/auth.e2e.ts:17:21
BEFORE
detox[64255] TRACE: [ARTIFACTS_LIFECYCLE] artifactsManager.onBeforeTerminateApp({
deviceId: '71B71E3A-5463-487F-A9F5-4D8DF1FF5975',
bundleId: 'com.example.app'
})
detox[64255] DEBUG: [EXEC_CMD, #11] /usr/bin/xcrun simctl terminate 71B71E3A-5463-487F-A9F5-4D8DF1FF5975 com.example.app
detox[64255] DEBUG: [EXEC_TRY, #11] Terminating com.example.app...
detox[64255] TRACE: [EXEC_SUCCESS, #11]
detox[64255] DEBUG: [EXEC_SUCCESS, #11] com.example.app terminated
detox[64255] TRACE: [ARTIFACTS_LIFECYCLE] artifactsManager.onTerminateApp({
deviceId: '71B71E3A-5463-487F-A9F5-4D8DF1FF5975',
bundleId: 'com.example.app'
})
detox[64255] TRACE: [ARTIFACTS_LIFECYCLE] artifactsManager.onBeforeUninstallApp({
deviceId: '71B71E3A-5463-487F-A9F5-4D8DF1FF5975',
bundleId: 'com.example.app'
})
detox[64255] DEBUG: [EXEC_CMD, #12] /usr/bin/xcrun simctl uninstall 71B71E3A-5463-487F-A9F5-4D8DF1FF5975 com.example.app
detox[64255] DEBUG: [EXEC_TRY, #12] Uninstalling com.example.app...
detox[64255] TRACE: [EXEC_SUCCESS, #12]
detox[64255] DEBUG: [EXEC_SUCCESS, #12] com.example.app uninstalled
detox[64255] DEBUG: [EXEC_CMD, #13] /usr/bin/xcrun simctl install 71B71E3A-5463-487F-A9F5-4D8DF1FF5975 "/Users/user/Documents/MyApp/repos/react-native-app/ios/build/Build/Products/Debug-iphonesimulator/My App.app"
detox[64255] DEBUG: [EXEC_TRY, #13] Installing /Users/user/Documents/MyApp/repos/react-native-app/ios/build/Build/Products/Debug-iphonesimulator/My App.app...
detox[64255] TRACE: [EXEC_SUCCESS, #13]
detox[64255] DEBUG: [EXEC_SUCCESS, #13] /Users/user/Documents/MyApp/repos/react-native-app/ios/build/Build/Products/Debug-iphonesimulator/My App.app installed
detox[64255] DEBUG: [EXEC_CMD, #14] applesimutils --byId 71B71E3A-5463-487F-A9F5-4D8DF1FF5975 --bundle com.example.app --restartSB --setPermissions notifications=YES,userTracking=YES
detox[64255] DEBUG: [EXEC_TRY, #14] Trying to set permissions...
detox[64255] TRACE: [EXEC_SUCCESS, #14]
detox[64255] DEBUG: [EXEC_SUCCESS, #14] Permissions are set
detox[64255] TRACE: [ARTIFACTS_LIFECYCLE] artifactsManager.onBeforeLaunchApp({
bundleId: 'com.example.app',
deviceId: '71B71E3A-5463-487F-A9F5-4D8DF1FF5975',
launchArgs: {
detoxServer: 'ws://localhost:51438',
detoxSessionId: '6a1e2a74-1d3a-a3fc-1df3-3fc2df5223a9'
}
})
detox[64255] DEBUG: [EXEC_CMD, #15] SIMCTL_CHILD_DYLD_INSERT_LIBRARIES="/Users/user/Library/Detox/ios/841dc0275294a01b39d7594ae5d2bf25a7b0bd45/Detox.framework/Detox" /usr/bin/xcrun simctl launch 71B71E3A-5463-487F-A9F5-4D8DF1FF5975 com.example.app --args -detoxServer ws://localhost:51438 -detoxSessionId 6a1e2a74-1d3a-a3fc-1df3-3fc2df5223a9 -detoxDisableHierarchyDump YES
detox[64255] DEBUG: [EXEC_TRY, #15] Launching com.example.app...
detox[64255] TRACE: [EXEC_TRY_FAIL, #15] An error was encountered processing the command (domain=FBSOpenApplicationServiceErrorDomain, code=5):
The request to open "com.example.app" failed.
Unexpected error type.
Underlying error (domain=BSServiceConnectionErrorDomain, code=3):
The operation couldn’t be completed. (BSServiceConnectionErrorDomain error 3.)
detox[64255] DEBUG: [EXEC_TRY, #15] Launching com.example.app...
detox[64255] TRACE: [EXEC_SUCCESS, #15] com.example.app: 64359
detox[64255] DEBUG: [EXEC_CMD, #16] /usr/bin/xcrun simctl get_app_container 71B71E3A-5463-487F-A9F5-4D8DF1FF5975 com.example.app
detox[64255] TRACE: [EXEC_SUCCESS, #16] /Users/user/Library/Developer/CoreSimulator/Devices/71B71E3A-5463-487F-A9F5-4D8DF1FF5975/data/Containers/Bundle/Application/26E2A620-D45A-4A76-98AB-FBB4F018B66C/My App.app
detox[64255] INFO: [AppleSimUtils.js] com.example.app launched. To watch simulator logs, run:
/usr/bin/xcrun simctl spawn 71B71E3A-5463-487F-A9F5-4D8DF1FF5975 log stream --level debug --style compact --predicate 'process == "My App"'
detox[64359] TRACE: [ARTIFACTS_LIFECYCLE] artifactsManager.onLaunchApp({
bundleId: 'com.example.app',
deviceId: '71B71E3A-5463-487F-A9F5-4D8DF1FF5975',
launchArgs: {
detoxServer: 'ws://localhost:51438',
detoxSessionId: '6a1e2a74-1d3a-a3fc-1df3-3fc2df5223a9',
detoxDisableHierarchyDump: 'YES'
},
pid: 64359
})
detox[64255] DEBUG: [WSS_CONNECTION, #51470] registered a new connection.
detox[64255] TRACE: [WSS_GET_FROM, #51470] {"params":{"sessionId":"6a1e2a74-1d3a-a3fc-1df3-3fc2df5223a9","role":"app"},"messageId":0,"type":"login"}
detox[64255] TRACE: [WSS_SEND_TO, #app] {"params":{"testerConnected":true,"appConnected":true},"messageId":0,"type":"loginSuccess"}
detox[64255] TRACE: [SESSION_JOINED] app joined session 6a1e2a74-1d3a-a3fc-1df3-3fc2df5223a9
detox[64255] TRACE: [WSS_SEND_TO, #tester] {"type":"appConnected"}
detox[64255] TRACE: [WS_MESSAGE] {"type":"appConnected"}
detox[64255] TRACE: [WS_SEND] {"type":"isReady","params":{},"messageId":-1000}
detox[64255] TRACE: [WSS_GET_FROM, #tester] {"type":"isReady","params":{},"messageId":-1000}
detox[64255] TRACE: [WSS_SEND_TO, #app] {"type":"isReady","params":{},"messageId":-1000}
detox[64255] TRACE: [WSS_GET_FROM, #app] {"params":{},"type":"ready","messageId":-1000}
detox[64255] TRACE: [WSS_SEND_TO, #tester] {"params":{},"type":"ready","messageId":-1000}
detox[64255] TRACE: [WS_MESSAGE] {"params":{},"type":"ready","messageId":-1000}
detox[64255] TRACE: [WS_SEND] {"type":"waitForActive","params":{},"messageId":1}
detox[64255] TRACE: [WSS_GET_FROM, #tester] {"type":"waitForActive","params":{},"messageId":1}
detox[64255] TRACE: [WSS_SEND_TO, #app] {"type":"waitForActive","params":{},"messageId":1}
detox[64255] TRACE: [WSS_GET_FROM, #app] {"params":{},"type":"ready","messageId":-1000}
detox[64255] TRACE: [WSS_SEND_TO, #tester] {"params":{},"type":"ready","messageId":-1000}
detox[64255] TRACE: [WS_MESSAGE] {"params":{},"type":"ready","messageId":-1000}
detox[64255] TRACE: [WSS_GET_FROM, #app] {"params":{},"type":"ready","messageId":-1000}
detox[64255] TRACE: [WSS_SEND_TO, #tester] {"params":{},"type":"ready","messageId":-1000}
detox[64255] TRACE: [WS_MESSAGE] {"params":{},"type":"ready","messageId":-1000}
detox[64255] TRACE: [WSS_GET_FROM, #app] {"type":"waitForActiveDone","params":{},"messageId":1}
detox[64255] TRACE: [WSS_SEND_TO, #tester] {"type":"waitForActiveDone","params":{},"messageId":1}
detox[64255] TRACE: [WS_MESSAGE] {"type":"waitForActiveDone","params":{},"messageId":1}
detox[64359] TRACE: [ARTIFACTS_LIFECYCLE] artifactsManager.onAppReady({
deviceId: '71B71E3A-5463-487F-A9F5-4D8DF1FF5975',
bundleId: 'com.example.app',
pid: 64359
})
detox[64255] INFO: at e2e/auth.e2e.ts:28:21
BEFORE COMPLETED
detox[64255] TRACE: [WS_SEND] {"type":"invoke","params":{"type":"expectation","predicate":{"type":"text","value":"Sign In!"},"expectation":"toBeVisible"},"messageId":2}
detox[64255] TRACE: [WSS_GET_FROM, #tester] {"type":"invoke","params":{"type":"expectation","predicate":{"type":"text","value":"Sign In!"},"expectation":"toBeVisible"},"messageId":2}
detox[64255] TRACE: [WSS_SEND_TO, #app] {"type":"invoke","params":{"type":"expectation","predicate":{"type":"text","value":"Sign In!"},"expectation":"toBeVisible"},"messageId":2}
detox[64255] TRACE: [WSS_GET_FROM, #app] {"messageId":2,"params":{},"type":"invokeResult"}
detox[64255] TRACE: [WSS_SEND_TO, #tester] {"messageId":2,"params":{},"type":"invokeResult"}
detox[64255] TRACE: [WS_MESSAGE] {"messageId":2,"params":{},"type":"invokeResult"}
detox[64255] TRACE: [WS_SEND] {"type":"invoke","params":{"type":"action","action":"tap","predicate":{"type":"text","value":"Sign In!"}},"messageId":3}
detox[64255] TRACE: [WSS_GET_FROM, #tester] {"type":"invoke","params":{"type":"action","action":"tap","predicate":{"type":"text","value":"Sign In!"}},"messageId":3}
detox[64255] TRACE: [WSS_SEND_TO, #app] {"type":"invoke","params":{"type":"action","action":"tap","predicate":{"type":"text","value":"Sign In!"}},"messageId":3}
detox[64255] TRACE: [WSS_GET_FROM, #app] {"params":{},"type":"invokeResult","messageId":3}
detox[64255] TRACE: [WSS_SEND_TO, #tester] {"params":{},"type":"invokeResult","messageId":3}
detox[64255] TRACE: [WS_MESSAGE] {"params":{},"type":"invokeResult","messageId":3}
detox[64255] TRACE: [WS_SEND] {"type":"invoke","params":{"type":"action","action":"typeText","params":["tech+e2e-unsub@email.com.au"],"predicate":{"type":"id","value":"sign-in-email-input"}},"messageId":4}
detox[64255] TRACE: [WSS_GET_FROM, #tester] {"type":"invoke","params":{"type":"action","action":"typeText","params":["tech+e2e-unsub@email.com.au"],"predicate":{"type":"id","value":"sign-in-email-input"}},"messageId":4}
detox[64255] TRACE: [WSS_SEND_TO, #app] {"type":"invoke","params":{"type":"action","action":"typeText","params":["tech+e2e-unsub@email.com.au"],"predicate":{"type":"id","value":"sign-in-email-input"}},"messageId":4}
detox[64255] TRACE: [WSS_GET_FROM, #app] {"type":"invokeResult","params":{},"messageId":4}
detox[64255] TRACE: [WSS_SEND_TO, #tester] {"type":"invokeResult","params":{},"messageId":4}
detox[64255] TRACE: [WS_MESSAGE] {"type":"invokeResult","params":{},"messageId":4}
detox[64255] TRACE: [WS_SEND] {"type":"invoke","params":{"type":"action","action":"typeText","params":["BadPassword"],"predicate":{"type":"id","value":"sign-in-password-input"}},"messageId":5}
detox[64255] TRACE: [WSS_GET_FROM, #tester] {"type":"invoke","params":{"type":"action","action":"typeText","params":["BadPassword"],"predicate":{"type":"id","value":"sign-in-password-input"}},"messageId":5}
detox[64255] TRACE: [WSS_SEND_TO, #app] {"type":"invoke","params":{"type":"action","action":"typeText","params":["BadPassword"],"predicate":{"type":"id","value":"sign-in-password-input"}},"messageId":5}
detox[64255] TRACE: [WSS_GET_FROM, #app] {"params":{},"type":"invokeResult","messageId":5}
detox[64255] TRACE: [WSS_SEND_TO, #tester] {"params":{},"type":"invokeResult","messageId":5}
detox[64255] TRACE: [WS_MESSAGE] {"params":{},"type":"invokeResult","messageId":5}
detox[64255] TRACE: [WS_SEND] {"type":"invoke","params":{"type":"action","action":"tap","predicate":{"type":"text","value":"Sign in with Email"}},"messageId":6}
detox[64255] TRACE: [WSS_GET_FROM, #tester] {"type":"invoke","params":{"type":"action","action":"tap","predicate":{"type":"text","value":"Sign in with Email"}},"messageId":6}
detox[64255] TRACE: [WSS_SEND_TO, #app] {"type":"invoke","params":{"type":"action","action":"tap","predicate":{"type":"text","value":"Sign in with Email"}},"messageId":6}
detox[64255] TRACE: [WSS_GET_FROM, #app] {"messageId":6,"params":{},"type":"invokeResult"}
detox[64255] TRACE: [WSS_SEND_TO, #tester] {"messageId":6,"params":{},"type":"invokeResult"}
detox[64255] TRACE: [WS_MESSAGE] {"messageId":6,"params":{},"type":"invokeResult"}
detox[64255] TRACE: [WS_SEND] {"type":"invoke","params":{"type":"expectation","predicate":{"type":"and","predicates":[{"type":"label","value":"Ok"},{"type":"type","value":"_UIAlertControllerActionView"}]},"expectation":"toBeVisible"},"messageId":7}
detox[64255] TRACE: [WSS_GET_FROM, #tester] {"type":"invoke","params":{"type":"expectation","predicate":{"type":"and","predicates":[{"type":"label","value":"Ok"},{"type":"type","value":"_UIAlertControllerActionView"}]},"expectation":"toBeVisible"},"messageId":7}
detox[64255] TRACE: [WSS_SEND_TO, #app] {"type":"invoke","params":{"type":"expectation","predicate":{"type":"and","predicates":[{"type":"label","value":"Ok"},{"type":"type","value":"_UIAlertControllerActionView"}]},"expectation":"toBeVisible"},"messageId":7}
detox[64255] TRACE: [WSS_GET_FROM, #app] {"type":"invokeResult","messageId":7,"params":{}}
detox[64255] TRACE: [WSS_SEND_TO, #tester] {"type":"invokeResult","messageId":7,"params":{}}
detox[64255] TRACE: [WS_MESSAGE] {"type":"invokeResult","messageId":7,"params":{}}
detox[64255] TRACE: [WS_SEND] {"type":"invoke","params":{"type":"action","action":"tap","predicate":{"type":"and","predicates":[{"type":"label","value":"Ok"},{"type":"type","value":"_UIAlertControllerActionView"}]}},"messageId":8}
detox[64255] TRACE: [WSS_GET_FROM, #tester] {"type":"invoke","params":{"type":"action","action":"tap","predicate":{"type":"and","predicates":[{"type":"label","value":"Ok"},{"type":"type","value":"_UIAlertControllerActionView"}]}},"messageId":8}
detox[64255] TRACE: [WSS_SEND_TO, #app] {"type":"invoke","params":{"type":"action","action":"tap","predicate":{"type":"and","predicates":[{"type":"label","value":"Ok"},{"type":"type","value":"_UIAlertControllerActionView"}]}},"messageId":8}
detox[64255] TRACE: [WSS_GET_FROM, #app] {"params":{},"messageId":8,"type":"invokeResult"}
detox[64255] TRACE: [WSS_SEND_TO, #tester] {"params":{},"messageId":8,"type":"invokeResult"}
detox[64255] TRACE: [WS_MESSAGE] {"params":{},"messageId":8,"type":"invokeResult"}
detox[64255] TRACE: [DETOX_AFTER_EACH] passed test: "Authentication Where email and password are invalid Should login unsuccessfully and display an error"
detox[64255] TRACE: [ARTIFACTS_LIFECYCLE] artifactsManager.onTestDone({
title: 'Should login unsuccessfully and display an error',
fullName: 'Authentication Where email and password are invalid Should login unsuccessfully and display an error',
status: 'passed',
invocations: 1,
timedOut: false
})
detox[64255] INFO: Authentication > Where email and password are invalid: Should login unsuccessfully and display an error [OK]
Where email and password are invalid[64255] TRACE: [ARTIFACTS_LIFECYCLE] artifactsManager.onRunDescribeFinish({ name: 'Where email and password are invalid' })
Authentication[64255] TRACE: [ARTIFACTS_LIFECYCLE] artifactsManager.onRunDescribeFinish({ name: 'Authentication' })
ROOT_DESCRIBE_BLOCK[64255] TRACE: [ARTIFACTS_LIFECYCLE] artifactsManager.onRunDescribeFinish({ name: 'ROOT_DESCRIBE_BLOCK' })
detox[64255] TRACE: [ARTIFACTS_LIFECYCLE] artifactsManager.onBeforeCleanup()
detox[64255] TRACE: [WS_SEND] {"type":"cleanup","params":{"stopRunner":true},"messageId":-49642}
detox[64255] TRACE: [WSS_GET_FROM, #tester] {"type":"cleanup","params":{"stopRunner":true},"messageId":-49642}
detox[64255] TRACE: [WSS_SEND_TO, #app] {"type":"cleanup","params":{"stopRunner":true},"messageId":-49642}
detox[64255] TRACE: [WSS_GET_FROM, #app] {"messageId":-49642,"params":{},"type":"cleanupDone"}
detox[64255] TRACE: [WSS_SEND_TO, #tester] {"messageId":-49642,"params":{},"type":"cleanupDone"}
detox[64255] TRACE: [WS_MESSAGE] {"messageId":-49642,"params":{},"type":"cleanupDone"}
detox[64255] DEBUG: [WSS_CLOSE] Detox server has been closed gracefully
FAIL e2e/auth.e2e.ts (46.972 s)
Authentication
Where email and password are valid
✕ Should login successfully to the dashboard (13787 ms)
Where email and password are invalid
✓ Should login unsuccessfully and display an error (28851 ms)
● Authentication › Where email and password are valid › Should login successfully to the dashboard
DetoxRuntimeError: The pending request #-1000 ("isReady") has been rejected due to the following error:
The app has unexpectedly disconnected from Detox server.
detox[64255] TRACE: [SESSION_TORN] app exited session 6a1e2a74-1d3a-a3fc-1df3-3fc2df5223a9
detox[64255] TRACE: [WSS_SEND_TO, #tester] {"type":"appDisconnected"}
detox[64255] TRACE: [SESSION_TORN] tester exited session 6a1e2a74-1d3a-a3fc-1df3-3fc2df5223a9
detox[64254] ERROR: [cli.js] Command failed: jest --config e2e/config.json --testNamePattern '^((?!:android:).)*$' --maxWorkers 1 e2e
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Reactions: 3
- Comments: 19 (2 by maintainers)
We’ve recently resolved this by following the “Signal 11” advice in https://github.com/wix/Detox/pull/3135 and related issues.
tl;dr Upgrading our react native firebase dependencies and Detox to the latest has resolved the issue 😃
Unfortunately not. We were unable to resolve it and just stopped using Detox
Has anyone else experienced this issue or have any idea what’s wrong?