You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
lerna run test runs fine with all tests passing at 100%.
Then when I try to run detox e2e covarage tests on both Android and iOS they fail.
At this stage when I run git status I noticed detox/src/ios/earlgreyapi/GREYMatchers.js has been modified and several package-lock.json's installed (should be ignored / commited?).
iOS
cd detox/test
npm run build:ios
npm run e2e:ios
Full error:
Sanity
✓ should have welcome screen (361ms)
✓ should show hello screen after tap (746ms)
✓ should show world screen after tap (243ms)
Matchers
✓ should match elements by (accesibility) label (753ms)
✓ should match elements by (accesibility) id (290ms)
✓ should match elements by index (267ms)
✓ should match elements by type (native class) (278ms)
✓ :ios: should match elements by accesibility trait (268ms)
✓ should match elements with ancenstor (parent)
✓ should match elements with descendant (child)
✓ should match elements by using two matchers together with and
- should choose from multiple elements matching the same matcher using index
Actions
✓ should tap on an element (1163ms)
✓ should long press on an element (1920ms)
✓ should multi tap on an element (1554ms)
✓ should tap on an element at point (1484ms)
1) should type in an element
15 passing (23s)
1 pending
1 failing
1) Actions should type in an element:
Error: Error: An action failed. Please refer to the error trace below.
Exception with Action: {
"Action Name" : "Type 'passcode'",
"Element Matcher" : "(((respondsToSelector(accessibilityIdentifier) && accessibilityID('UniqueId937')) && !(kindOfClass('RCTScrollView'))) || (kindOfClass('UIScrollView') && ((kindOfClass('UIView') || respondsToSelector(accessibilityContainer)) && ancestorThatMatches(((respondsToSelector(accessibilityIdentifier) && accessibilityID('UniqueId937')) && kindOfClass('RCTScrollView'))))))"
}
Error Trace: [
{
"Description" : "Failed to type string 'passcode', because keyboard was not shown on screen.",
"Error Domain" : "com.google.earlgrey.ElementInteractionErrorDomain",
"Error Code" : "2",
"File Name" : "GREYKeyboard.m",
"Function Name" : "+[GREYKeyboard typeString:inFirstResponder:error:]",
"Line" : "185"
}
]
Android
cd detox/test
npm run build:android
npm run e2e:android
exactly what @simonracz said. make sure the mac keyboard layout is English.
We still need to figure out how to run platform specific tests, the current way is to do what Simon says 😜
Problem
I have followed the contribution guide.
lerna run test
runs fine with all tests passing at 100%.Then when I try to run detox e2e covarage tests on both Android and iOS they fail.
At this stage when I run
git status
I noticeddetox/src/ios/earlgreyapi/GREYMatchers.js
has been modified and severalpackage-lock.json
's installed (should be ignored / commited?).iOS
Full error:
Android
Full Android error:
The text was updated successfully, but these errors were encountered: