1

I'm trying to do a e2e test when there is no network connection. Is this possible with Detox even if it's simulated, if so, how?

I'm running e2e testing on my react native app for some libraries written in native code, the API calls are on the native library I just need to expect a networking error window to appear from the library.

I was thinking I could emulate latency somehow but I haven't managed to do it so far.

Amirgem
  • 141
  • 1
  • 11
  • 1
    Not possible on Detox right now. You can swizzle the network request API that the native code performs and respond to those calls with an error. – Léo Natan Aug 30 '19 at 08:27

0 Answers0