Skip to content

Commit

Permalink
test: add e2e for restarting app
Browse files Browse the repository at this point in the history
  • Loading branch information
cortisiko committed Dec 16, 2024
1 parent 529dc1b commit a3ad361
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions e2e/specs/settings/addressbook-tests.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -141,4 +141,18 @@ describe(SmokeCore('Addressbook Tests'), () => {
await WalletActionsBottomSheet.tapSendButton();
await Assertions.checkIfTextIsDisplayed('Ibrahim');
});

it('shouldrelaunch app to verify newly added contact did not disappear', async () => {
/* Running this test locally may fail because of expo limitation.
You would need to ensure that once the app relaunches, you would need to
select the proper expo server so the app loads. Once that is done. The test will pass
*/
await device.terminateApp();
await device.launchApp();
await loginToApp();
await TabBarComponent.tapSettings();
await SettingsView.tapContacts();
await Assertions.checkIfVisible(ContactsView.container);
await ContactsView.isContactAliasVisible('Ibrahim');
});
});

0 comments on commit a3ad361

Please sign in to comment.