From dbb246fdc7f23c11b0f65ccaf7ef0950a21dab8f Mon Sep 17 00:00:00 2001 From: kmelmon <33470154+kmelmon@users.noreply.github.com> Date: Wed, 22 Jul 2020 19:43:04 -0700 Subject: [PATCH] fix smoke test (#5575) * fix smoke test * comment * so far so good, try #3 --- packages/E2ETest/wdio/pages/HomePage.ts | 4 ++++ packages/E2ETest/wdio/test/AAA_SmokeTest.spec.ts | 6 +++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/packages/E2ETest/wdio/pages/HomePage.ts b/packages/E2ETest/wdio/pages/HomePage.ts index 37d83374bf9..da11b578c39 100644 --- a/packages/E2ETest/wdio/pages/HomePage.ts +++ b/packages/E2ETest/wdio/pages/HomePage.ts @@ -48,6 +48,10 @@ class HomePage extends BasePage { ImageTestPage.waitForPageLoaded(); } + clickControlStylePageButton() { + this.ControlStylePageButton.click(); + } + clickAndGotoControlStylePage() { this.ControlStylePageButton.click(); ControlStyleTestPage.waitForPageLoaded(); diff --git a/packages/E2ETest/wdio/test/AAA_SmokeTest.spec.ts b/packages/E2ETest/wdio/test/AAA_SmokeTest.spec.ts index e730fc4dc0c..42bdcae7c7e 100644 --- a/packages/E2ETest/wdio/test/AAA_SmokeTest.spec.ts +++ b/packages/E2ETest/wdio/test/AAA_SmokeTest.spec.ts @@ -6,6 +6,10 @@ import HomePage from '../pages/HomePage'; describe('SmokeTest', () => { it('SmokeTest', () => { - HomePage.clickAndGotoControlStylePage(); + // Only click the button to try to go to the ControlStyle test page, + // to workaround an instability in WinAppDriver (?) on first test launch, + // which causes the click to not actually work if the control needs to + // first be scrolled into view. + HomePage.clickControlStylePageButton(); }); });