diff --git a/tests/e2e/bluewallet.spec.js b/tests/e2e/bluewallet.spec.js index ccaa6db4..3d58558d 100644 --- a/tests/e2e/bluewallet.spec.js +++ b/tests/e2e/bluewallet.spec.js @@ -1,6 +1,21 @@ /* global it, describe, expect, element, by, waitFor, device */ describe('BlueWallet UI Tests', () => { + it('selftest passes', async () => { + await waitFor(element(by.id('WalletsList'))) + .toBeVisible() + .withTimeout(300 * 1000); + + // go to settings, press SelfTest and wait for OK + await element(by.id('SettingsButton')).tap(); + await element(by.id('AboutButton')).tap(); + await element(by.id('AboutScrollView')).swipe('up', 'fast', 1); // in case emu screen is small and it doesnt fit + await element(by.id('RunSelfTestButton')).tap(); + await waitFor(element(by.id('SelfTestOk'))) + .toBeVisible() + .withTimeout(300 * 1000); + }); + it('can encrypt storage, with plausible deniability', async () => { await yo('WalletsList'); diff --git a/tests/e2e/selftest.spec.js b/tests/e2e/selftest.spec.js deleted file mode 100644 index f1918551..00000000 --- a/tests/e2e/selftest.spec.js +++ /dev/null @@ -1,18 +0,0 @@ -/* global it, describe, element, by, waitFor */ - -describe('BlueWallet Selftest', () => { - it('passes', async () => { - await waitFor(element(by.id('WalletsList'))) - .toBeVisible() - .withTimeout(300 * 1000); - - // go to settings, press SelfTest and wait for OK - await element(by.id('SettingsButton')).tap(); - await element(by.id('AboutButton')).tap(); - await element(by.id('AboutScrollView')).swipe('up', 'fast', 1); // in case emu screen is small and it doesnt fit - await element(by.id('RunSelfTestButton')).tap(); - await waitFor(element(by.id('SelfTestOk'))) - .toBeVisible() - .withTimeout(300 * 1000); - }); -});