Skip to content

Commit

Permalink
Fix uptime tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mikecote committed Apr 14, 2020
1 parent 05934ff commit 877a0f2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions x-pack/test/functional/services/uptime/alerts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,21 +26,21 @@ export function UptimeAlertsProvider({ getService }: FtrProviderContext) {
}
},
async setAlertName(name: string) {
return testSubjects.setValue('alertNameInput', name);
return testSubjects.setValue('alertNameInput', name, { clearWithKeyboard: true });
},
async setAlertInterval(value: string) {
return testSubjects.setValue('intervalInput', value);
return testSubjects.setValue('intervalInput', value, { clearWithKeyboard: true });
},
async setAlertThrottleInterval(value: string) {
return testSubjects.setValue('throttleInput', value);
return testSubjects.setValue('throttleInput', value, { clearWithKeyboard: true });
},
async setAlertExpressionValue(
expressionAttribute: string,
fieldAttribute: string,
value: string
) {
await testSubjects.click(expressionAttribute);
await testSubjects.setValue(fieldAttribute, value);
await testSubjects.setValue(fieldAttribute, value, { clearWithKeyboard: true });
return browser.pressKeys(browser.keys.ESCAPE);
},
async setAlertStatusNumTimes(value: string) {
Expand Down

0 comments on commit 877a0f2

Please sign in to comment.