From b9fb2eeb5daf72a4c52193be5a7ae9eb020a7a11 Mon Sep 17 00:00:00 2001 From: JC Date: Wed, 16 Oct 2024 17:15:21 -0600 Subject: [PATCH] fix: fix & ci e2e new test added --- .github/workflows/android-ubuntu-e2e-test-ci.yaml | 1 + .github/workflows/ios-e2e-test.yaml | 1 + e2e/parse_invalid_address.test.js | 10 +++++----- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/.github/workflows/android-ubuntu-e2e-test-ci.yaml b/.github/workflows/android-ubuntu-e2e-test-ci.yaml index 071cffaab..649b388e4 100644 --- a/.github/workflows/android-ubuntu-e2e-test-ci.yaml +++ b/.github/workflows/android-ubuntu-e2e-test-ci.yaml @@ -113,6 +113,7 @@ jobs: fail-fast: false matrix: test: [ + "parse_invalid_address", "tex_send_address", "reload_while_tx_pending", "change_custom_server", diff --git a/.github/workflows/ios-e2e-test.yaml b/.github/workflows/ios-e2e-test.yaml index bbcad5f9f..b93516dde 100644 --- a/.github/workflows/ios-e2e-test.yaml +++ b/.github/workflows/ios-e2e-test.yaml @@ -23,6 +23,7 @@ jobs: fail-fast: false matrix: test: [ + "parse_invalid_address", "tex_send_address", "reload_while_tx_pending", "change_custom_server", diff --git a/e2e/parse_invalid_address.test.js b/e2e/parse_invalid_address.test.js index cf7402495..78865bfb3 100644 --- a/e2e/parse_invalid_address.test.js +++ b/e2e/parse_invalid_address.test.js @@ -5,15 +5,15 @@ import { loadRecipientWallet } from './e2e-utils/loadRecipientWallet.js'; const sleep = ms => new Promise(r => setTimeout(r, ms)); describe('Renders wallet data correctly.', () => { - beforeEach(async () => { - await device.launchApp({ - newInstance: true, - }); - }); it('loads a wallet', async () => await loadRecipientWallet()); it('does not parse an incorrect address', async () => { + await waitFor(element(by.id('vt-1'))) + .toExist() + .withTimeout(30000); await element(by.text('SEND')).tap(); + await element(by.id('send.addressplaceholder')).replaceText('thisisaninvalidaddress'); + await waitFor(element(by.id('send.address.error'))) .toExist() .withTimeout(5000);