mirror of
https://github.com/BlueWallet/BlueWallet.git
synced 2025-03-04 12:18:10 +01:00
tests blind fix, excuse me
This commit is contained in:
parent
b24ac76686
commit
38caa7a9e0
1 changed files with 16 additions and 13 deletions
|
@ -108,7 +108,22 @@ describe('BlueWallet UI Tests', () => {
|
||||||
await element(by.text('OK')).tap();
|
await element(by.text('OK')).tap();
|
||||||
await device.pressBack();
|
await device.pressBack();
|
||||||
|
|
||||||
// network -> broadcast
|
// notifications
|
||||||
|
// turn on notifications if available
|
||||||
|
await element(by.id('NotificationSettings')).tap();
|
||||||
|
if (await expectToBeVisible('NotificationSettings')) {
|
||||||
|
await element(by.id('NotificationsSwitch')).tap();
|
||||||
|
await sup('OK');
|
||||||
|
await element(by.text('OK')).tap();
|
||||||
|
await element(by.id('NotificationsSwitch')).tap();
|
||||||
|
await device.pressBack();
|
||||||
|
await device.pressBack();
|
||||||
|
}
|
||||||
|
|
||||||
|
// tools
|
||||||
|
await element(by.id('Tools')).tap();
|
||||||
|
|
||||||
|
// tools -> broadcast
|
||||||
// try to broadcast wrong tx
|
// try to broadcast wrong tx
|
||||||
await element(by.id('Broadcast')).tap();
|
await element(by.id('Broadcast')).tap();
|
||||||
await element(by.id('TxHex')).replaceText('invalid\n');
|
await element(by.id('TxHex')).replaceText('invalid\n');
|
||||||
|
@ -117,18 +132,6 @@ describe('BlueWallet UI Tests', () => {
|
||||||
// await expect(element(by.text('the transaction was rejected by network rules....'))).toBeVisible();
|
// await expect(element(by.text('the transaction was rejected by network rules....'))).toBeVisible();
|
||||||
await element(by.text('OK')).tap();
|
await element(by.text('OK')).tap();
|
||||||
await device.pressBack();
|
await device.pressBack();
|
||||||
await device.pressBack();
|
|
||||||
|
|
||||||
// notifications
|
|
||||||
// turn on notifications if available
|
|
||||||
if (await expectToBeVisible('NotificationSettings')) {
|
|
||||||
await element(by.id('NotificationSettings')).tap();
|
|
||||||
await element(by.id('NotificationsSwitch')).tap();
|
|
||||||
await sup('OK');
|
|
||||||
await element(by.text('OK')).tap();
|
|
||||||
await element(by.id('NotificationsSwitch')).tap();
|
|
||||||
await device.pressBack();
|
|
||||||
}
|
|
||||||
|
|
||||||
// privacy
|
// privacy
|
||||||
// trigger switches
|
// trigger switches
|
||||||
|
|
Loading…
Add table
Reference in a new issue