Skip to content

Commit

Permalink
fix: fix & ci e2e new test added
Browse files Browse the repository at this point in the history
  • Loading branch information
juanky201271 committed Oct 16, 2024
1 parent ca99a7d commit b9fb2ee
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
1 change: 1 addition & 0 deletions .github/workflows/android-ubuntu-e2e-test-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ jobs:
fail-fast: false
matrix:
test: [
"parse_invalid_address",
"tex_send_address",
"reload_while_tx_pending",
"change_custom_server",
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/ios-e2e-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ jobs:
fail-fast: false
matrix:
test: [
"parse_invalid_address",
"tex_send_address",
"reload_while_tx_pending",
"change_custom_server",
Expand Down
10 changes: 5 additions & 5 deletions e2e/parse_invalid_address.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit b9fb2ee

Please sign in to comment.