Is it possible to disable synchronization before/during launchApp (with newInstance: true)? Ideally I'd like the:
await device.launchApp({ newInstance: true, url });
to resolve immediately.
I've inherited an app that does weird things at launch, so I'd like to bypass synchronization at the beginning and only reenable it afterwards.
I tried something like this:
await device.disableSynchronization();
await device.launchApp({ newInstance: true, url });
await waitFor(element(by.id('root'))).toBeVisible().withTimeout(10000);
await device.enableSynchronization();
but from the docs I read that synchronization is always re-enabled for new instances.
Is there a way to force synchronization to be off so that device.launchApp can actually resolve?