diff --git a/e2e/lnurl.e2e.js b/e2e/lnurl.e2e.js index 6a0dac317..a0789b8ed 100644 --- a/e2e/lnurl.e2e.js +++ b/e2e/lnurl.e2e.js @@ -1,6 +1,7 @@ import BitcoinJsonRpc from 'bitcoin-json-rpc'; import createLndRpc from '@radar/lnrpc'; import LNURL from 'lnurl'; +import { device } from 'detox'; import { sleep, @@ -19,7 +20,11 @@ const __DEV__ = process.env.DEV === 'true'; const tls = `${__dirname}/../docker/lnd/tls.cert`; const macaroon = `${__dirname}/../docker/lnd/data/chain/bitcoin/regtest/admin.macaroon`; -const d = checkComplete('lnurl-1') ? describe.skip : describe; +// disable lnurl tests on android since we don't have alert with input +const d = + checkComplete('lnurl-1') || device.getPlatform() === 'android' + ? describe.skip + : describe; const waitForEvent = (lnurl, name) => { let timer; @@ -105,7 +110,7 @@ d('LNURL', () => { let { label: ldkNodeID } = await element( by.id('LDKNodeID'), ).getAttributes(); - await element(by.id('NavigationClose')).tap(); + await element(by.id('NavigationClose')).atIndex(0).tap(); // send funds to LND node and open a channel const lnd = await createLndRpc({