Browse Source

TST: ref detox

master
Overtorment 5 years ago
parent
commit
2f34aaf3cc
  1. 15
      tests/e2e/bluewallet.spec.js
  2. 18
      tests/e2e/selftest.spec.js

15
tests/e2e/bluewallet.spec.js

@ -1,6 +1,21 @@
/* global it, describe, expect, element, by, waitFor, device */ /* global it, describe, expect, element, by, waitFor, device */
describe('BlueWallet UI Tests', () => { 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 () => { it('can encrypt storage, with plausible deniability', async () => {
await yo('WalletsList'); await yo('WalletsList');

18
tests/e2e/selftest.spec.js

@ -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);
});
});
Loading…
Cancel
Save