TST: fixed failing e2e (for some reason notifications service is not available anymore on cloud CI)

This commit is contained in:
Overtorment 2021-04-13 13:26:37 +01:00
parent e7ba2cd2dc
commit 20aa6ed07d

View File

@ -120,14 +120,18 @@ describe('BlueWallet UI Tests', () => {
// notifications
// turn on notifications if available
await element(by.id('NotificationSettings')).tap();
// console.warn('yo');
// await sleep(300000);
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();
await device.pressBack();
} else {
await device.pressBack();
}
// tools