Skip to content

Commit 7541eba

Browse files
committed
TST: fix receive and send e2e assertions
1 parent 2d74e47 commit 7541eba

2 files changed

Lines changed: 15 additions & 1 deletion

File tree

tests/e2e/04-receive.spec.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,10 @@ describe('Receive', () => {
1313
.toBeVisible()
1414
.withTimeout(15_000);
1515
});
16+
17+
it('renders an address', async () => {
18+
await waitFor(element(by.id('CopyTextToClipboard')))
19+
.toExist()
20+
.withTimeout(15_000);
21+
});
1622
});

tests/e2e/05-send.spec.js

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { helperCreateWallet, launchAppForE2E } from './helperz';
1+
import { helperCreateWallet, launchAppForE2E, waitForText } from './helperz';
22

33
describe('Send', () => {
44
beforeAll(async () => {
@@ -12,4 +12,12 @@ describe('Send', () => {
1212
.toBeVisible()
1313
.withTimeout(15_000);
1414
});
15+
16+
it('shows a validation alert on incomplete form and stays on send screen', async () => {
17+
await element(by.id('AddressInput')).replaceText('notanaddress');
18+
await element(by.text('Next')).tap();
19+
await waitForText('OK');
20+
await element(by.text('OK')).tap();
21+
await expect(element(by.id('AddressInput'))).toBeVisible();
22+
});
1523
});

0 commit comments

Comments
 (0)