Skip to content

Commit

Permalink
fix smoke test (#5575)
Browse files Browse the repository at this point in the history
* fix smoke test

* comment

* so far so good, try #3
  • Loading branch information
kmelmon committed Jul 23, 2020
1 parent 8efd533 commit dbb246f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
4 changes: 4 additions & 0 deletions packages/E2ETest/wdio/pages/HomePage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,10 @@ class HomePage extends BasePage {
ImageTestPage.waitForPageLoaded();
}

clickControlStylePageButton() {
this.ControlStylePageButton.click();
}

clickAndGotoControlStylePage() {
this.ControlStylePageButton.click();
ControlStyleTestPage.waitForPageLoaded();
Expand Down
6 changes: 5 additions & 1 deletion packages/E2ETest/wdio/test/AAA_SmokeTest.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
});
});

0 comments on commit dbb246f

Please sign in to comment.