Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions appium/config/wdio.live.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,12 @@ config.suites = {
],
inbox: [
'./tests/specs/live/inbox/*.spec.ts'
],
compose: [
'./tests/specs/live/composeEmail/*.spec.ts'
],
login: [
'./tests/specs/live/login/*.spec.ts'
]
};

Expand Down
4 changes: 4 additions & 0 deletions appium/tests/screenobjects/splash.screen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,10 @@ class SplashScreen extends BaseScreen {
await ElementHelper.waitAndClick(await this.continueButton);
}

clickCancelButton = async () => {
await ElementHelper.waitAndClick(await this.cancelButton);
}

changeLanguage = async (language = '‪English (United States)‬') => {
await ElementHelper.waitAndClick(await this.languageDropdown, 500);
const selector = `~${language}`;
Expand Down
27 changes: 27 additions & 0 deletions appium/tests/specs/live/login/CancelLoginAndLogout.spec.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
import {
SplashScreen,
SetupKeyScreen,
MenuBarScreen,
MailFolderScreen
} from '../../../screenobjects/all-screens';


describe('LOGIN: ', () => {

it('user should be able to cancel login + login + logout', async () => {

await SplashScreen.clickContinueWithGmail();
await SplashScreen.clickCancelButton();
await SplashScreen.checkLoginPage();

await SplashScreen.login();
await SetupKeyScreen.setPassPhrase();
await MailFolderScreen.checkInboxScreen();

await MenuBarScreen.clickMenuIcon();
await MenuBarScreen.checkUserEmail();

await MenuBarScreen.clickLogout();
await SplashScreen.checkLoginPage();
});
});