Refactor e2e helpers

This commit is contained in:
Johnny Almonte committed 2020-03-29 18:06:37 -04:00
1 parent 57a0ba33ea
commit 839084b9b6
4 files changed
+13 -2

No files matched your search

+8
View File
@@ -0,0 +1,8 @@
module.exports.openSettingsScreen = async () => {
await device.reloadReactNative();
// Opens the settings screen
await waitFor(element(by.id('rootView'))).toBeVisible().withTimeout(2000);
await element(by.id('headerButton')).tap();
await element(by.id('settingsButton')).tap();
};