From b93713d81764a6e500cb1d1cfeb612f17f1877c5 Mon Sep 17 00:00:00 2001 From: Overtorment Date: Wed, 27 Jan 2021 13:57:07 +0000 Subject: [PATCH] TST: fixes e2e because of absent pushes on emulator --- tests/e2e/bluewallet.spec.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/e2e/bluewallet.spec.js b/tests/e2e/bluewallet.spec.js index f58073ee9..a13ae97f5 100644 --- a/tests/e2e/bluewallet.spec.js +++ b/tests/e2e/bluewallet.spec.js @@ -47,7 +47,11 @@ describe('BlueWallet UI Tests', () => { await element(by.id('cr34t3d')).tap(); await element(by.id('ReceiveButton')).tap(); await element(by.text('Yes, I have')).tap(); - await element(by.text(`No, and don't ask me again`)).tap(); + try { + // in case emulator has no google services and doesnt support pushes + // we just dont show this popup + await element(by.text(`No, and don't ask me again`)).tap(); + } catch (_) {} await yo('BitcoinAddressQRCodeContainer'); await yo('BlueCopyTextToClipboard'); await element(by.id('SetCustomAmountButton')).tap();