Skip to content

Instantly share code, notes, and snippets.

@Rob117
Last active February 14, 2018 23:54
Show Gist options
  • Save Rob117/57defa8a9c166bba2e2199d194a62ee1 to your computer and use it in GitHub Desktop.
Save Rob117/57defa8a9c166bba2e2199d194a62ee1 to your computer and use it in GitHub Desktop.
Verbose logs for Detox issue
node_modules/.bin/jest e2e --config=e2e/config.json --runInBand
server listening on localhost:62008...
onOpen [object Object]
send: {"type":"login","params":{"sessionId":"88453d00-8a51-5ceb-8488-c701def3ca20","role":"tester"},"messageId":0}
onMessage: {"type":"loginSuccess","params":{"sessionId":"88453d00-8a51-5ceb-8488-c701def3ca20","role":"tester"},"messageId":0}
rbx
: applesimutils --list "iPhone 7" --maxResults=1
: Searching for device matching iPhone 7...
[ stdout:
{tdout:
"deviceType" : {
"name" : "iPhone 7",
"identifier" : "com.apple.CoreSimulator.SimDeviceType.iPhone-7"
},ut:
"state" : "Booted",
"availability" : "(available)",
"name" : "iPhone 7",
"udid" : "DB29DD26-B7FB-43CB-B8DA-A749DAFDE443",
"os" : {
"version" : "11.2",
"availability" : "(available)",
"name" : "iOS 11.2",
"identifier" : "com.apple.CoreSimulator.SimRuntime.iOS-11-2",
"buildversion" : "15C107"
}out:
}tdout:
] stdout:
: stdout:
: applesimutils --list
[ stdout:
{tdout:
"deviceType" : {
"name" : "Apple TV",
"identifier" : "com.apple.CoreSimulator.SimDeviceType.Apple-TV-1080p"
},ut:
"state" : "Shutdown",
"availability" : "(available)",
"name" : "Apple TV",
"udid" : "009E70B1-87C2-4532-8A79-D9CFDB635BC1",
"os" : {
"version" : "11.2",
"availability" : "(available)",
"name" : "tvOS 11.2",
"identifier" : "com.apple.CoreSimulator.SimRuntime.tvOS-11-2",
"buildversion" : "15K104"
}out:
},dout:
{tdout:
"deviceType" : {
"name" : "Apple TV 4K",
"identifier" : "com.apple.CoreSimulator.SimDeviceType.Apple-TV-4K-4K"
},ut:
"state" : "Shutdown",
"availability" : "(available)",
"name" : "Apple TV 4K",
"udid" : "68C32B2B-254E-4361-8182-1992327F0BCD",
"os" : {
"version" : "11.2",
"availability" : "(available)",
"name" : "tvOS 11.2",
"identifier" : "com.apple.CoreSimulator.SimRuntime.tvOS-11-2",
"buildversion" : "15K104"
}out:
},dout:
{tdout:
"deviceType" : {
"name" : "Apple TV 4K (at 1080p)",
"identifier" : "com.apple.CoreSimulator.SimDeviceType.Apple-TV-4K-1080p"
},ut:
"state" : "Shutdown",
"availability" : "(available)",
"name" : "Apple TV 4K (at 1080p)",
"udid" : "9A5AD831-D121-4A23-BF7B-EC949DCDA623",
"os" : {
"version" : "11.2",
"availability" : "(available)",
"name" : "tvOS 11.2",
"identifier" : "com.apple.CoreSimulator.SimRuntime.tvOS-11-2",
"buildversion" : "15K104"
}out:
},dout:
{tdout:
"deviceType" : {
"name" : "iPad (5th generation)",
"identifier" : "com.apple.CoreSimulator.SimDeviceType.iPad--5th-generation-"
},ut:
"state" : "Shutdown",
"availability" : "(available)",
"name" : "iPad (5th generation)",
"udid" : "5B4D3C09-2D48-422B-8188-D08DFCCCFE31",
"os" : {
"version" : "11.2",
"availability" : "(available)",
"name" : "iOS 11.2",
"identifier" : "com.apple.CoreSimulator.SimRuntime.iOS-11-2",
"buildversion" : "15C107"
}out:
},dout:
{tdout:
"deviceType" : {
"name" : "iPad Air",
"identifier" : "com.apple.CoreSimulator.SimDeviceType.iPad-Air"
},ut:
"state" : "Shutdown",
"availability" : "(available)",
"name" : "iPad Air",
"udid" : "6416EC07-1BDF-4E03-9B59-36FF5DB5FF39",
"os" : {
"version" : "11.2",
"availability" : "(available)",
"name" : "iOS 11.2",
"identifier" : "com.apple.CoreSimulator.SimRuntime.iOS-11-2",
"buildversion" : "15C107"
}out:
},dout:
{tdout:
"deviceType" : {
"name" : "iPad Air 2",
"identifier" : "com.apple.CoreSimulator.SimDeviceType.iPad-Air-2"
},ut:
"state" : "Shutdown",
"availability" : "(available)",
"name" : "iPad Air 2",
"udid" : "A75D1BB5-4C18-49B4-8869-96032CDB9DB6",
"os" : {
"version" : "11.2",
"availability" : "(available)",
"name" : "iOS 11.2",
"identifier" : "com.apple.CoreSimulator.SimRuntime.iOS-11-2",
"buildversion" : "15C107"
}out:
},dout:
{tdout:
"deviceType" : {
"name" : "iPad Pro (10.5-inch)",
"identifier" : "com.apple.CoreSimulator.SimDeviceType.iPad-Pro--10-5-inch-"
},ut:
"state" : "Shutdown",
"availability" : "(available)",
"name" : "iPad Pro (10.5-inch)",
"udid" : "362B396E-032B-4940-8A04-82DA544B5840",
"os" : {
"version" : "11.2",
"availability" : "(available)",
"name" : "iOS 11.2",
"identifier" : "com.apple.CoreSimulator.SimRuntime.iOS-11-2",
"buildversion" : "15C107"
}out:
},dout:
{tdout:
"deviceType" : {
"name" : "iPad Pro (12.9-inch)",
"identifier" : "com.apple.CoreSimulator.SimDeviceType.iPad-Pro"
},ut:
"state" : "Shutdown",
"availability" : "(available)",
"name" : "iPad Pro (12.9-inch)",
"udid" : "7157658C-83B5-4C08-A208-11E0BC20296B",
"os" : {
"version" : "11.2",
"availability" : "(available)",
"name" : "iOS 11.2",
"identifier" : "com.apple.CoreSimulator.SimRuntime.iOS-11-2",
"buildversion" : "15C107"
}out:
},dout:
{tdout:
"deviceType" : {
"name" : "iPad Pro (12.9-inch) (2nd generation)",
"identifier" : "com.apple.CoreSimulator.SimDeviceType.iPad-Pro--12-9-inch---2nd-generation-"
},ut:
"state" : "Shutdown",
"availability" : "(available)",
"name" : "iPad Pro (12.9-inch) (2nd generation)",
"udid" : "33E70AFD-9EDE-4BE9-B18B-F2753530377E",
"os" : {
"version" : "11.2",
"availability" : "(available)",
"name" : "iOS 11.2",
"identifier" : "com.apple.CoreSimulator.SimRuntime.iOS-11-2",
"buildversion" : "15C107"
}out:
},dout:
{tdout:
"deviceType" : {
"name" : "iPad Pro (9.7-inch)",
"identifier" : "com.apple.CoreSimulator.SimDeviceType.iPad-Pro--9-7-inch-"
},ut:
"state" : "Shutdown",
"availability" : "(available)",
"name" : "iPad Pro (9.7-inch)",
"udid" : "E94B10DE-DF32-4DFF-BF63-7FBD3EEDF3F7",
"os" : {
"version" : "11.2",
"availability" : "(available)",
"name" : "iOS 11.2",
"identifier" : "com.apple.CoreSimulator.SimRuntime.iOS-11-2",
"buildversion" : "15C107"
}out:
},dout:
{tdout:
"deviceType" : {
"name" : "iPhone 5s",
"identifier" : "com.apple.CoreSimulator.SimDeviceType.iPhone-5s"
},ut:
"state" : "Shutdown",
"availability" : "(available)",
"name" : "iPhone 5s",
"udid" : "28FF845B-9436-4B7A-A634-00C03314BAB8",
"os" : {
"version" : "11.2",
"availability" : "(available)",
"name" : "iOS 11.2",
"identifier" : "com.apple.CoreSimulator.SimRuntime.iOS-11-2",
"buildversion" : "15C107"
}out:
},dout:
{tdout:
"deviceType" : {
"name" : "iPhone 6",
"identifier" : "com.apple.CoreSimulator.SimDeviceType.iPhone-6"
},ut:
"state" : "Shutdown",
"availability" : "(available)",
"name" : "iPhone 6",
"udid" : "D3C649B7-04E3-4B42-B2EE-A2D995B9446E",
"os" : {
"version" : "11.2",
"availability" : "(available)",
"name" : "iOS 11.2",
"identifier" : "com.apple.CoreSimulator.SimRuntime.iOS-11-2",
"buildversion" : "15C107"
}out:
},dout:
{tdout:
"deviceType" : {
"name" : "iPhone 6 Plus",
"identifier" : "com.apple.CoreSimulator.SimDeviceType.iPhone-6-Plus"
},ut:
"state" : "Shutdown",
"availability" : "(available)",
"name" : "iPhone 6 Plus",
"udid" : "F86A3711-F1AF-4BB9-BF86-94D100A0E810",
"os" : {
"version" : "11.2",
"availability" : "(available)",
"name" : "iOS 11.2",
"identifier" : "com.apple.CoreSimulator.SimRuntime.iOS-11-2",
"buildversion" : "15C107"
}out:
},dout:
{tdout:
"deviceType" : {
"name" : "iPhone 6s",
"identifier" : "com.apple.CoreSimulator.SimDeviceType.iPhone-6s"
},ut:
"state" : "Shutdown",
"availability" : "(available)",
"name" : "iPhone 6s",
"udid" : "95397A28-7C8D-4C4D-BF3E-E2E33DC4CBE2",
"os" : {
"version" : "11.2",
"availability" : "(available)",
"name" : "iOS 11.2",
"identifier" : "com.apple.CoreSimulator.SimRuntime.iOS-11-2",
"buildversion" : "15C107"
}out:
},dout:
{tdout:
"deviceType" : {
"name" : "iPhone 6s Plus",
"identifier" : "com.apple.CoreSimulator.SimDeviceType.iPhone-6s-Plus"
},ut:
"state" : "Shutdown",
"availability" : "(available)",
"name" : "iPhone 6s Plus",
"udid" : "CD6BDE37-0190-4763-9AB3-6385E7482669",
"os" : {
"version" : "11.2",
"availability" : "(available)",
"name" : "iOS 11.2",
"identifier" : "com.apple.CoreSimulator.SimRuntime.iOS-11-2",
"buildversion" : "15C107"
}out:
},dout:
{tdout:
"deviceType" : {
"name" : "iPhone 7",
"identifier" : "com.apple.CoreSimulator.SimDeviceType.iPhone-7"
},ut:
"state" : "Booted",
"availability" : "(available)",
"name" : "iPhone 7",
"udid" : "DB29DD26-B7FB-43CB-B8DA-A749DAFDE443",
"os" : {
"version" : "11.2",
"availability" : "(available)",
"name" : "iOS 11.2",
"identifier" : "com.apple.CoreSimulator.SimRuntime.iOS-11-2",
"buildversion" : "15C107"
}out:
},dout:
{tdout:
"deviceType" : {
"name" : "iPhone 7 Plus",
"identifier" : "com.apple.CoreSimulator.SimDeviceType.iPhone-7-Plus"
},ut:
"state" : "Shutdown",
"availability" : "(available)",
"name" : "iPhone 7 Plus",
"udid" : "B0491677-7894-40B6-A18D-4E80A7208E57",
"os" : {
"version" : "11.2",
"availability" : "(available)",
"name" : "iOS 11.2",
"identifier" : "com.apple.CoreSimulator.SimRuntime.iOS-11-2",
"buildversion" : "15C107"
}out:
},dout:
{tdout:
"deviceType" : {
"name" : "iPhone 8",
"identifier" : "com.apple.CoreSimulator.SimDeviceType.iPhone-8"
},ut:
"state" : "Shutdown",
"availability" : "(available)",
"name" : "iPhone 8",
"udid" : "C2BEC877-2497-42D5-A730-D6B8A119F68A",
"os" : {
"version" : "11.2",
"availability" : "(available)",
"name" : "iOS 11.2",
"identifier" : "com.apple.CoreSimulator.SimRuntime.iOS-11-2",
"buildversion" : "15C107"
}out:
},dout:
{tdout:
"deviceType" : {
"name" : "iPhone 8 Plus",
"identifier" : "com.apple.CoreSimulator.SimDeviceType.iPhone-8-Plus"
},ut:
"state" : "Shutdown",
"availability" : "(available)",
"name" : "iPhone 8 Plus",
"udid" : "3C523710-9BFF-4915-B90E-F37CB8D64C16",
"os" : {
"version" : "11.2",
"availability" : "(available)",
"name" : "iOS 11.2",
"identifier" : "com.apple.CoreSimulator.SimRuntime.iOS-11-2",
"buildversion" : "15C107"
}out:
},dout:
{tdout:
"deviceType" : {
"name" : "iPhone SE",
"identifier" : "com.apple.CoreSimulator.SimDeviceType.iPhone-SE"
},ut:
"state" : "Shutdown",
"availability" : "(available)",
"name" : "iPhone SE",
"udid" : "6BF41E25-0907-4230-9166-ABD8DDFB0E31",
"os" : {
"version" : "11.2",
"availability" : "(available)",
"name" : "iOS 11.2",
"identifier" : "com.apple.CoreSimulator.SimRuntime.iOS-11-2",
"buildversion" : "15C107"
}out:
},dout:
{tdout:
"deviceType" : {
"name" : "iPhone X",
"identifier" : "com.apple.CoreSimulator.SimDeviceType.iPhone-X"
},ut:
"state" : "Shutdown",
"availability" : "(available)",
"name" : "iPhone X",
"udid" : "4FDDE5CE-AE08-4CDF-A8F9-B4A85C7D7BD7",
"os" : {
"version" : "11.2",
"availability" : "(available)",
"name" : "iOS 11.2",
"identifier" : "com.apple.CoreSimulator.SimRuntime.iOS-11-2",
"buildversion" : "15C107"
}out:
},dout:
{tdout:
"deviceType" : {
"name" : "Apple Watch - 38mm",
"identifier" : "com.apple.CoreSimulator.SimDeviceType.Apple-Watch-38mm"
},ut:
"state" : "Shutdown",
"availability" : "(available)",
"name" : "Apple Watch - 38mm",
"udid" : "7390201D-9037-4F90-9C53-2D86060E32E3",
"os" : {
"version" : "4.2",
"availability" : "(available)",
"name" : "watchOS 4.2",
"identifier" : "com.apple.CoreSimulator.SimRuntime.watchOS-4-2",
"buildversion" : "15S100"
}out:
},dout:
{tdout:
"deviceType" : {
"name" : "Apple Watch - 42mm",
"identifier" : "com.apple.CoreSimulator.SimDeviceType.Apple-Watch-42mm"
},ut:
"state" : "Shutdown",
"availability" : "(available)",
"name" : "Apple Watch - 42mm",
"udid" : "2C73C868-FF9C-4035-BDFA-5CFD069B2F11",
"os" : {
"version" : "4.2",
"availability" : "(available)",
"name" : "watchOS 4.2",
"identifier" : "com.apple.CoreSimulator.SimRuntime.watchOS-4-2",
"buildversion" : "15S100"
}out:
},dout:
{tdout:
"deviceType" : {
"name" : "Apple Watch Series 2 - 38mm",
"identifier" : "com.apple.CoreSimulator.SimDeviceType.Apple-Watch-Series-2-38mm"
},ut:
"state" : "Shutdown",
"availability" : "(available)",
"name" : "Apple Watch Series 2 - 38mm",
"udid" : "795D7E50-19EF-4E63-8A30-B7F1DC36DBB9",
"os" : {
"version" : "4.2",
"availability" : "(available)",
"name" : "watchOS 4.2",
"identifier" : "com.apple.CoreSimulator.SimRuntime.watchOS-4-2",
"buildversion" : "15S100"
}out:
},dout:
{tdout:
"deviceType" : {
"name" : "Apple Watch Series 2 - 42mm",
"identifier" : "com.apple.CoreSimulator.SimDeviceType.Apple-Watch-Series-2-42mm"
},ut:
"state" : "Shutdown",
"availability" : "(available)",
"name" : "Apple Watch Series 2 - 42mm",
"udid" : "4C5D7617-CCAF-4F7B-917B-C429115325F1",
"os" : {
"version" : "4.2",
"availability" : "(available)",
"name" : "watchOS 4.2",
"identifier" : "com.apple.CoreSimulator.SimRuntime.watchOS-4-2",
"buildversion" : "15S100"
}out:
},dout:
{tdout:
"deviceType" : {
"name" : "Apple Watch Series 3 - 38mm",
"identifier" : "com.apple.CoreSimulator.SimDeviceType.Apple-Watch-Series-3-38mm"
},ut:
"state" : "Shutdown",
"availability" : "(available)",
"name" : "Apple Watch Series 3 - 38mm",
"udid" : "6AB02AA9-6A9D-4B5C-8EDA-CCCB2D47EE24",
"os" : {
"version" : "4.2",
"availability" : "(available)",
"name" : "watchOS 4.2",
"identifier" : "com.apple.CoreSimulator.SimRuntime.watchOS-4-2",
"buildversion" : "15S100"
}out:
},dout:
{tdout:
"deviceType" : {
"name" : "Apple Watch Series 3 - 42mm",
"identifier" : "com.apple.CoreSimulator.SimDeviceType.Apple-Watch-Series-3-42mm"
},ut:
"state" : "Shutdown",
"availability" : "(available)",
"name" : "Apple Watch Series 3 - 42mm",
"udid" : "699BD15C-E964-47C4-A77C-3CE4D334CF17",
"os" : {
"version" : "4.2",
"availability" : "(available)",
"name" : "watchOS 4.2",
"identifier" : "com.apple.CoreSimulator.SimRuntime.watchOS-4-2",
"buildversion" : "15S100"
}out:
}tdout:
] stdout:
: stdout:
3: /usr/bin/xcrun simctl uninstall DB29DD26-B7FB-43CB-B8DA-A749DAFDE443 org.reactjs.native. xample.Guidely
: Uninstalling org.reactjs.native.example.Guidely...
: org.reactjs.native.example.Guidely uninstalled
4: /usr/bin/xcrun simctl install DB29DD26-B7FB-43CB-B8DA-A749DAFDE443 /Users/r-sherling/spo /Guidely/ios/build/Build/Products/Debug-iphonesimulator/Guidely.app
4: Installing /Users/r-sherling/spot/Guidely/ios/build/Build/Products/Debug-iphonesimulator Guidely.app...
4: /Users/r-sherling/spot/Guidely/ios/build/Build/Products/Debug-iphonesimulator/Guidely.ap installed
5: /usr/bin/xcrun simctl terminate DB29DD26-B7FB-43CB-B8DA-A749DAFDE443 org.reactjs.native. xample.Guidely
: Terminating org.reactjs.native.example.Guidely...
: org.reactjs.native.example.Guidely terminated
6: /bin/cat /dev/null >$HOME/Library/Developer/CoreSimulator/Devices/DB29DD26-B7FB-43CB-B8DA-A749DAFDE443/data/tmp/detox.last_launch_app_log.out 2>$HOME/Library/Developer/CoreSimulator/Devices/DB29DD26-B7FB-43CB-B8DA-A749DAFDE443/data/tmp/detox.last_launch_app_log.err && SIMCTL_CHILD_DYLD_INSERT_LIBRARIES="/Users/r-sherling/Library/Detox/ios/fc3bb123b36c426327a2ab12f6d5185aa779ec37/Detox.framework/Detox" /usr/bin/xcrun simctl launch --stdout=/tmp/detox.last_launch_app_log.out --stderr=/tmp/detox.last_launch_app_log.err DB29DD26-B7FB-43CB-B8DA-A749DAFDE443 org.reactjs.native.example.Guidely --args -detoxServer ws://localhost:62008 -detoxSessionId 88453d00-8a51-5ceb-8488-c701def3ca20
: Launching org.reactjs.native.example.Guidely...
org.reactjs.native.example.Guidely: 4682
: stdout:
6: org.reactjs.native.example.Guidely launched. The stdout and stderr logs were recreated, you can watch them with:
tail -F $HOME/Library/Developer/CoreSimulator/Devices/DB29DD26-B7FB-43CB-B8DA-A749D FDE443/data/tmp/detox.last_launch_app_log.{out,err}
send: {"type":"isReady","params":{},"messageId":-1000}
onMessage: {"type":"ready","messageId":-1000,"params":{}}
rbx
send: {"type":"reactNativeReload","params":{},"messageId":-1000}
onMessage: {"type":"ready","messageId":-1000,"params":{}}
rbx
send: {"type":"invoke","params":{"target":{"type":"Invocation","value":{"target":{"type":"EarlGrey","value":"instance"},"method":"detox_selectElementWithMatcher:","args":[{"type":"Invocation","value":{"target":{"type":"Class","value":"GREYMatchers"},"method":"matcherForAccessibilityID:","args":[{"type":"NSString","value":"welcome"}]}}]}},"method":"assertWithMatcher:","args":[{"type":"Invocation","value":{"target":{"type":"Class","value":"GREYMatchers"},"method":"matcherForSufficientlyVisible","args":[]}}]},"messageId":1}
onMessage: {"type":"invokeResult","messageId":1,"params":{"result":"(GREYElementInteraction)"}}
rbx
send: {"type":"reactNativeReload","params":{},"messageId":-1000}
onMessage: {"type":"ready","messageId":-1000,"params":{}}
rbx
send: {"type":"invoke","params":{"target":{"type":"Invocation","value":{"target":{"type":"EarlGrey","value":"instance"},"method":"detox_selectElementWithMatcher:","args":[{"type":"Invocation","value":{"target":{"type":"Class","value":"GREYMatchers"},"method":"matcherForAccessibilityID:","args":[{"type":"NSString","value":"hello_button"}]}}]}},"method":"performAction:","args":[{"type":"Invocation","value":{"target":{"type":"Class","value":"GREYActions"},"method":"actionForTap","args":[]}}]},"messageId":2}
onMessage: {"type":"invokeResult","messageId":2,"params":{"result":"(GREYElementInteraction)"}}
rbx
send: {"type":"invoke","params":{"target":{"type":"Invocation","value":{"target":{"type":"EarlGrey","value":"instance"},"method":"detox_selectElementWithMatcher:","args":[{"type":"Invocation","value":{"target":{"type":"Class","value":"GREYMatchers"},"method":"detoxMatcherForText:","args":[{"type":"NSString","value":"Hello!!!"}]}}]}},"method":"assertWithMatcher:","args":[{"type":"Invocation","value":{"target":{"type":"Class","value":"GREYMatchers"},"method":"matcherForNotNil","args":[]}}]},"messageId":3}
onMessage: {"type":"testFailed","messageId":3,"params":{"details":"Cannot find UI Element.\nException with Assertion: {\n \"Assertion Criteria\" : \"assertWithMatcher:isNotNil\",\n \"Element Matcher\" : \"((((kindOfClass('UILabel') || kindOfClass('UITextField') || kindOfClass('UITextView')) && hasText('Hello!!!')) && !(kindOfClass('RCTScrollView'))) || (kindOfClass('UIScrollView') && ((kindOfClass('UIView') || respondsToSelector(accessibilityContainer)) && ancestorThatMatches((((kindOfClass('UILabel') || kindOfClass('UITextField') || kindOfClass('UITextView')) && hasText('Hello!!!')) && kindOfClass('RCTScrollView'))))))\",\n \"Recovery Suggestion\" : \"Check if the element exists in the UI hierarchy printed below. If it exists, adjust the matcher so that it accurately matches element.\"\n}\n\nError Trace: [\n {\n \"Description\" : \"Interaction cannot continue because the desired element was not found.\",\n \"Error Domain\" : \"com.google.earlgrey.ElementInteractionErrorDomain\",\n \"Error Code\" : \"0\",\n \"File Name\" : \"GREYElementInteraction.m\",\n \"Function Name\" : \"-[GREYElementInteraction matchedElementsWithTimeout:error:]\",\n \"Line\" : \"124\"\n }\n]"}}
rbx
send: {"type":"reactNativeReload","params":{},"messageId":-1000}
onMessage: {"type":"ready","messageId":-1000,"params":{}}
rbx
send: {"type":"invoke","params":{"target":{"type":"Invocation","value":{"target":{"type":"EarlGrey","value":"instance"},"method":"detox_selectElementWithMatcher:","args":[{"type":"Invocation","value":{"target":{"type":"Class","value":"GREYMatchers"},"method":"matcherForAccessibilityID:","args":[{"type":"NSString","value":"world_button"}]}}]}},"method":"performAction:","args":[{"type":"Invocation","value":{"target":{"type":"Class","value":"GREYActions"},"method":"actionForTap","args":[]}}]},"messageId":4}
onMessage: {"type":"invokeResult","messageId":4,"params":{"result":"(GREYElementInteraction)"}}
rbx
send: {"type":"invoke","params":{"target":{"type":"Invocation","value":{"target":{"type":"EarlGrey","value":"instance"},"method":"detox_selectElementWithMatcher:","args":[{"type":"Invocation","value":{"target":{"type":"Class","value":"GREYMatchers"},"method":"detoxMatcherForText:","args":[{"type":"NSString","value":"World!!!"}]}}]}},"method":"assertWithMatcher:","args":[{"type":"Invocation","value":{"target":{"type":"Class","value":"GREYMatchers"},"method":"matcherForSufficientlyVisible","args":[]}}]},"messageId":5}
onMessage: {"type":"testFailed","messageId":5,"params":{"details":"Cannot find UI Element.\nException with Assertion: {\n \"Assertion Criteria\" : \"assertWithMatcher:matcherForSufficientlyVisible(>=0.750000)\",\n \"Element Matcher\" : \"((((kindOfClass('UILabel') || kindOfClass('UITextField') || kindOfClass('UITextView')) && hasText('World!!!')) && !(kindOfClass('RCTScrollView'))) || (kindOfClass('UIScrollView') && ((kindOfClass('UIView') || respondsToSelector(accessibilityContainer)) && ancestorThatMatches((((kindOfClass('UILabel') || kindOfClass('UITextField') || kindOfClass('UITextView')) && hasText('World!!!')) && kindOfClass('RCTScrollView'))))))\",\n \"Recovery Suggestion\" : \"Check if the element exists in the UI hierarchy printed below. If it exists, adjust the matcher so that it accurately matches element.\"\n}\n\nError Trace: [\n {\n \"Description\" : \"Interaction cannot continue because the desired element was not found.\",\n \"Error Domain\" : \"com.google.earlgrey.ElementInteractionErrorDomain\",\n \"Error Code\" : \"0\",\n \"File Name\" : \"GREYElementInteraction.m\",\n \"Function Name\" : \"-[GREYElementInteraction matchedElementsWithTimeout:error:]\",\n \"Line\" : \"124\"\n }\n]"}}
rbx
send: {"type":"cleanup","params":{"stopRunner":false},"messageId":6}
onMessage: {"type":"cleanupDone","messageId":6,"params":{}}
rbx
FAIL e2e/firstTest.spec.js (9.983s)
Example
✓ should have welcome screen (2024ms)
✕ should show hello after tap (1360ms)
✕ should show world after tap (1388ms)
● Example › should show hello after tap
Error: Cannot find UI Element.
Exception with Assertion: {
"Assertion Criteria" : "assertWithMatcher:isNotNil",
"Element Matcher" : "((((kindOfClass('UILabel') || kindOfClass('UITextField') || kindOfClass('UITextView')) && hasText('Hello!!!')) && !(kindOfClass('RCTScrollView'))) || (kindOfClass('UIScrollView') && ((kindOfClass('UIView') || respondsToSelector(accessibilityContainer)) && ancestorThatMatches((((kindOfClass('UILabel') || kindOfClass('UITextField') || kindOfClass('UITextView')) && hasText('Hello!!!')) && kindOfClass('RCTScrollView'))))))",
"Recovery Suggestion" : "Check if the element exists in the UI hierarchy printed below. If it exists, adjust the matcher so that it accurately matches element."
}
Error Trace: [
{
"Description" : "Interaction cannot continue because the desired element was not found.",
"Error Domain" : "com.google.earlgrey.ElementInteractionErrorDomain",
"Error Code" : "0",
"File Name" : "GREYElementInteraction.m",
"Function Name" : "-[GREYElementInteraction matchedElementsWithTimeout:error:]",
"Line" : "124"
}
]
at Client.execute (../node_modules/detox/src/client/Client.js:71:13)
● Example › should show world after tap
Error: Cannot find UI Element.
Exception with Assertion: {
"Assertion Criteria" : "assertWithMatcher:matcherForSufficientlyVisible(>=0.750000)",
"Element Matcher" : "((((kindOfClass('UILabel') || kindOfClass('UITextField') || kindOfClass('UITextView')) && hasText('World!!!')) && !(kindOfClass('RCTScrollView'))) || (kindOfClass('UIScrollView') && ((kindOfClass('UIView') || respondsToSelector(accessibilityContainer)) && ancestorThatMatches((((kindOfClass('UILabel') || kindOfClass('UITextField') || kindOfClass('UITextView')) && hasText('World!!!')) && kindOfClass('RCTScrollView'))))))",
"Recovery Suggestion" : "Check if the element exists in the UI hierarchy printed below. If it exists, adjust the matcher so that it accurately matches element."
}
Error Trace: [
{
"Description" : "Interaction cannot continue because the desired element was not found.",
"Error Domain" : "com.google.earlgrey.ElementInteractionErrorDomain",
"Error Code" : "0",
"File Name" : "GREYElementInteraction.m",
"Function Name" : "-[GREYElementInteraction matchedElementsWithTimeout:error:]",
"Line" : "124"
}
]
at Client.execute (../node_modules/detox/src/client/Client.js:71:13)
Test Suites: 1 failed, 1 total
Tests: 2 failed, 1 passed, 3 total
Snapshots: 0 total
Time: 10.523s, estimated 11s
Ran all test suites matching /e2e/i.
child_process.js:614
throw err;
^
Error: Command failed: node_modules/.bin/jest e2e --config=e2e/config.json --runInBand
at checkExecSyncError (child_process.js:574:11)
at Object.execSync (child_process.js:611:13)
at runJest (/Users/r-sherling/spot/Guidely/node_modules/detox/local-cli/detox-test.js:80:6)
at Object.<anonymous> (/Users/r-sherling/spot/Guidely/node_modules/detox/local-cli/detox-test.js:53:5)
at Module._compile (module.js:660:30)
at Object.Module._extensions..js (module.js:671:10)
at Module.load (module.js:573:32)
at tryModuleLoad (module.js:513:12)
at Function.Module._load (module.js:505:3)
at Function.Module.runMain (module.js:701:10)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment