Add assertions to fix flaky tests
This commit is contained in:
parent
61028aa662
commit
b8f4ac13e5
1 changed files with 2 additions and 0 deletions
|
|
@ -42,6 +42,8 @@ export class ProviderPreferencePage extends BasePage {
|
||||||
|
|
||||||
async selectProvider(isSafelite: boolean) {
|
async selectProvider(isSafelite: boolean) {
|
||||||
if (isSafelite) {
|
if (isSafelite) {
|
||||||
|
await expect(this.scheduleNowButton).toBeVisible();
|
||||||
|
await expect(this.scheduleNowButton).toBeEnabled();
|
||||||
await this.scheduleNowButton.click();
|
await this.scheduleNowButton.click();
|
||||||
await this.nextPage();
|
await this.nextPage();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue