From 877a0f2836a87bc6324051992c2641690634bad0 Mon Sep 17 00:00:00 2001 From: Mike Cote Date: Tue, 14 Apr 2020 09:30:34 -0400 Subject: [PATCH] Fix uptime tests --- x-pack/test/functional/services/uptime/alerts.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/x-pack/test/functional/services/uptime/alerts.ts b/x-pack/test/functional/services/uptime/alerts.ts index 3a8193ff3d327..c73f81094da7a 100644 --- a/x-pack/test/functional/services/uptime/alerts.ts +++ b/x-pack/test/functional/services/uptime/alerts.ts @@ -26,13 +26,13 @@ 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, @@ -40,7 +40,7 @@ export function UptimeAlertsProvider({ getService }: FtrProviderContext) { 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) {