appium: NODE: ANDROID: Sample code is passing false positive, doesn't run all commands, and hangs up

The problem

I copied the most minimalistic sample code from the example repo:

when I run mocha test/e2e-native/home.spec.js, I get false positive, only one command is running, and the test hangs up and times out (see attached gists)

Environment

  • Appium version (or git revision) that exhibits the issue: 1.6.2
  • Last Appium version that did not exhibit the issue (if applicable):
  • Desktop OS/version used to run Appium: Ubuntu 16.04
  • Node.js version (unless using Appium.app|exe): 6.9.1
  • Mobile platform/version under test: android emulator 6.0
  • Real device or emulator/simulator: emulator
  • Appium CLI or Appium.app|exe: cli

Details

see gists

Link to Appium logs

gist

Code To Reproduce Issue [ Good To Have ]

I cloned the sample repo and ran the node simple-android test case, ran into the same problem

About this issue

  • Original URL
  • State: closed
  • Created 8 years ago
  • Comments: 20 (8 by maintainers)

Most upvoted comments

following #6025 , I ended up using this solution.

thanks for the help @jlipps @imurchie !

I’ve seen many people online struggling with RN and appium (and actually, e2e testing in general).

I think it could b very valuable to have an updated sample code. I can prepare a PR for this repo or the sample-code repo.

What do u think?