Skip to content

Commit

Permalink
test: Add e2e test for app status screen
Browse files Browse the repository at this point in the history
  • Loading branch information
ovitrif committed Jan 26, 2024
1 parent 3f33a5c commit e683e84
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions e2e/settings.e2e.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ const d = checkComplete([
'settings-rgs',
'settings-suggestions',
'settings-dev',
'settings-support-status',
])
? describe.skip
: describe;
Expand Down Expand Up @@ -623,4 +624,26 @@ d('Settings', () => {
markComplete('settings-dev');
});
});

d('Support', () => {
it('Can see app status', async () => {
if (checkComplete('settings-support-status')) {
return;
}

await element(by.id('Settings')).tap();
await element(by.id('Support')).tap();
await element(by.id('AppStatus')).tap();

await expect(element(by.id('Status-internet'))).toBeVisible();
await expect(element(by.id('Status-bitcoin_node'))).toBeVisible();
await expect(element(by.id('Status-lightning_node'))).toBeVisible();
await expect(element(by.id('Status-lightning_connection'))).toBeVisible();
await expect(element(by.id('Status-full_backup'))).toBeVisible();

await element(by.id('NavigationClose')).tap();

markComplete('settings-support-status');
});
});
});

0 comments on commit e683e84

Please sign in to comment.