Native and JS testing #4997
Unanswered
benhunterandrewrobertson
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi there,
I'm wondering what the best approach for testing how well the native and Javascript portions of our Capacitor app work together is? Currently we have a lot of test suites for the JS side, and none for the native side. We want to test the functionality of both sides together. Here's an example:
The user launches the app while unauthenticated, get's sent to the welcome screen > taps login > native in-app browser opens using the Capacitor Browser plugin > user enters their details, signs in correctly > browser closes and user is authenticated by the app. Testing with Jest or Cypress won't work for this scenario because we're using a mixture of JS and native code (i.e., the browser).
I couldn't see much discussion on this previously, except that the team is working to improve this in future releases.
Interested to see how other people have approached this issue.
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions