AVT-1145 [Spectron] Review and update the existing tests in closePopOutsOnReload.spectron (#498)

* Updated AVT-1145
This commit is contained in:
thaisym1912
2018-09-10 14:17:49 +07:00
committed by Kiran Niranjan
parent e23075445f
commit 87d6c20ad9
8 changed files with 160 additions and 278 deletions

View File

@@ -52,7 +52,7 @@ describe('Tests for always on top with mult-apps are opened', () => {
if (isMac) {
await Utils.openAppInMaximize("Notes");
await Utils.openAppInMaximize("Reminders");
await Utils.sleep(10);
await Utils.sleep(10); //Sleep 10secs for waiting app opening completely.
} else {
await Utils.openAppInMaximize("notepad.exe");
await Utils.openAppInMaximize("mspaint.exe");
@@ -60,7 +60,7 @@ describe('Tests for always on top with mult-apps are opened', () => {
await windowActions.showWindow();
await windowActions.clickOutsideWindow();
await windowActions.verifyWindowsOnTop(true);
//Close and open app again, make sure it's always on top
await app.stop();
app = await new Application({}).startApplication();