detox

Detox _ Failed to type string because keyboard was not shown on screen

自作多情 提交于 2019-12-04 08:09:25
I'm trying to test my react-native app using detox, waiting for a text input to be visible and typing text in it. My spec JS file looks like this: describe('FiestTest', () => { beforeEach(async () => { await device.reloadReactNative() }) it('Login to a test account', async () => { // LoginPage: entering phone number moving to next page await expect(element(by.id('LoginPage-phoneInput'))).toBeVisible() await element(by.id('LoginPage-phoneInput')).typeText('<someNumber>') }) }) And the error I get is: FiestTest 1) Enter phone number and tap on button 0 passing (15s) 1 failing 1) FiestTest Enter

Detox: iOS Simulator how to confirm alert message

无人久伴 提交于 2019-12-01 15:34:21
I am using Alert from react-native. How do I get detox to press the "Log out" button on the alert message? I tried using await element(by.text('Log out')).tap(); But I get "Multiple elements were matched" error. Presumably it finds 3 elements with same label. The original button with label "Log out" used to trigger the alert message, the alert message title, and the alert message button I want detox to press. Error Trace: [ { "Description" : "Multiple elements were matched: ( "<UILabel:0x7fe7964db910; AX=Y; AX.label='Log out'; AX.frame={{41, 234}, {238, 20.5}}; AX.activationPoint={160, 244.25}

Unable to open UIAutomatorviewer on Mac High Sierra

半腔热情 提交于 2019-11-29 08:46:50
We have brand new MacBooks with High Sierra (10.13.6). Other system info: JAVA Version: java version "11.0.1" 2018-10-16 LTS Java(TM) SE Runtime Environment 18.9 (build 11.0.1+13-LTS) JAVA_HOME: /Library/Java/JavaVirtualMachines/jdk-11.0.1.jdk/Contents/Home When tried to open Android UIAutomatorViwer we're getting following error: /Library/Android/sdk/tools/bin/uiautomatorviewer ; exit; /Library/Android/sdk/tools/lib is not supported. Use -classpath instead. Error: Could not create the Java Virtual Machine. Error: A fatal exception has occurred. Program will exit. logout Saving session... ..

Guide to automation framework in detox : React Native?

被刻印的时光 ゝ 提交于 2019-11-28 05:46:32
问题 I am planning to implement automation testing on detox for react native apps . Need suggestion on the following: Best Automation Framework that can be used TDD,BDD to avoid refactoring of code. Easy to use TestRunner Mocha or Jest or any other. Any reporting mechanism once the test has been executed. Any POC on detox automation for e2e testing with CI/CD. Design Pattern like POM how to use it for React Native Note: I have already installed the required dependency need in detox with Mocha from

Unable to open UIAutomatorviewer on Mac High Sierra

核能气质少年 提交于 2019-11-28 02:04:04
问题 We have brand new MacBooks with High Sierra (10.13.6). Other system info: JAVA Version: java version "11.0.1" 2018-10-16 LTS Java(TM) SE Runtime Environment 18.9 (build 11.0.1+13-LTS) JAVA_HOME: /Library/Java/JavaVirtualMachines/jdk-11.0.1.jdk/Contents/Home When tried to open Android UIAutomatorViwer we're getting following error: /Library/Android/sdk/tools/bin/uiautomatorviewer ; exit; /Library/Android/sdk/tools/lib is not supported. Use -classpath instead. Error: Could not create the Java