Merge pull request #2534 from BlueWallet/fix-tst-pushes

TST: fixes e2e because of absent pushes on emulator
This commit is contained in:
GLaDOS 2021-01-27 16:20:38 +00:00 committed by GitHub
commit d9e173a2f2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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();