Browse Source

Merge branch 'master' of github.com:BlueWallet/BlueWallet

settings-bar
Overtorment 5 years ago
parent
commit
0ec9ea774a
  1. 5
      tests/e2e/bluewallet.spec.js
  2. 4
      tests/e2e/init.js

5
tests/e2e/bluewallet.spec.js

@ -55,7 +55,6 @@ describe('BlueWallet UI Tests', () => {
await element(by.text('OK')).tap(); await element(by.text('OK')).tap();
// relaunch app // relaunch app
await device.terminateApp();
await device.launchApp({ newInstance: true }); await device.launchApp({ newInstance: true });
await waitFor(element(by.text('OK'))) await waitFor(element(by.text('OK')))
.toBeVisible() .toBeVisible()
@ -123,7 +122,6 @@ describe('BlueWallet UI Tests', () => {
// relaunch the app, unlock with fake password, expect to see fake wallet // relaunch the app, unlock with fake password, expect to see fake wallet
// relaunch app // relaunch app
await device.terminateApp();
await device.launchApp({ newInstance: true }); await device.launchApp({ newInstance: true });
await waitFor(element(by.text('OK'))) await waitFor(element(by.text('OK')))
.toBeVisible() .toBeVisible()
@ -138,7 +136,6 @@ describe('BlueWallet UI Tests', () => {
await expect(element(by.id('cr34t3d'))).toBeVisible(); await expect(element(by.id('cr34t3d'))).toBeVisible();
// relaunch app // relaunch app
await device.terminateApp();
await device.launchApp({ newInstance: true }); await device.launchApp({ newInstance: true });
await sleep(3000); await sleep(3000);
// //
@ -185,7 +182,6 @@ describe('BlueWallet UI Tests', () => {
await helperCreateWallet('fake_wallet'); await helperCreateWallet('fake_wallet');
// relaunch app // relaunch app
await device.terminateApp();
await device.launchApp({ newInstance: true }); await device.launchApp({ newInstance: true });
await waitFor(element(by.text('OK'))) await waitFor(element(by.text('OK')))
.toBeVisible() .toBeVisible()
@ -299,7 +295,6 @@ describe('BlueWallet UI Tests', () => {
await helperCreateWallet(); await helperCreateWallet();
await device.terminateApp();
await device.launchApp({ newInstance: true }); await device.launchApp({ newInstance: true });
await yo('WalletsList'); await yo('WalletsList');
await expect(element(by.id('cr34t3d'))).toBeVisible(); await expect(element(by.id('cr34t3d'))).toBeVisible();

4
tests/e2e/init.js

@ -24,9 +24,7 @@ beforeAll(async () => {
}, 600000); }, 600000);
beforeEach(async () => { beforeEach(async () => {
await device.uninstallApp(); await device.launchApp({ newInstance: true, delete: true });
await device.installApp();
await device.launchApp({ newInstance: true });
await sleep(2000); await sleep(2000);
await adapter.beforeEach(); await adapter.beforeEach();
}); });

Loading…
Cancel
Save