tweaselORG / appstraction

An abstraction layer for common instrumentation functions (e.g. installing and starting apps, setting preferences, etc.) on Android and iOS.
MIT License
4 stars 1 forks source link

`resetDevice()` fails on Android #96

Closed baltpeter closed 1 year ago

baltpeter commented 1 year ago
/home/benni/coding/JS/tweasel/appstraction/src/android.ts:330
            throw new Error(
                  ^

Error: You need to start the emulator.
    at Object.ensureDevice (/home/benni/coding/JS/tweasel/appstraction/src/android.ts:330:19)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at Object.resetDevice (/home/benni/coding/JS/tweasel/appstraction/src/android.ts:321:9)
    at <anonymous> (/home/benni/coding/JS/tweasel/appstraction/examples/android-emulator.ts:25:5)

We are not waiting for the emulator in ensureDevice() anymore.

baltpeter commented 1 year ago

Same problem as https://github.com/tweaselORG/cli/issues/23.