Skip to content

Commit

Permalink
Fixing uptime alert test
Browse files Browse the repository at this point in the history
  • Loading branch information
ymao1 committed Oct 7, 2020
1 parent f2dd930 commit af2963f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions x-pack/test/functional/services/uptime/alerts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -114,5 +114,8 @@ export function UptimeAlertsProvider({ getService }: FtrProviderContext) {
async clickSaveAlertButton() {
return testSubjects.click('saveAlertButton');
},
async clickSaveAlertsConfirmButton() {
return testSubjects.click('confirmAlertSaveModal > confirmModalConfirmButton');
},
};
}
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ export default ({ getPageObjects, getService }: FtrProviderContext) => {

it('can save alert', async () => {
await alerts.clickSaveAlertButton();
await alerts.clickSaveAlertsConfirmButton();
await pageObjects.common.closeToast();
});

Expand Down

0 comments on commit af2963f

Please sign in to comment.