diff --git a/test/functional/page_objects/visual_builder_page.js b/test/functional/page_objects/visual_builder_page.js index 463db503f361c..5dca134b3539f 100644 --- a/test/functional/page_objects/visual_builder_page.js +++ b/test/functional/page_objects/visual_builder_page.js @@ -68,7 +68,7 @@ export function VisualBuilderPageProvider({ getService, getPageObjects }) { await input.pressKeys([browser.keys.CONTROL, 'a']); // Select all for everything else } await input.pressKeys(browser.keys.NULL); // Release modifier keys - await input.pressKeys(browser.keys.BACK_SPACE); // Delete all content + await input.pressKeys(browser.keys.BACKSPACE); // Delete all content await input.type(markdown); await PageObjects.visualize.waitForRenderingCount(prevRenderingCount + 1); } diff --git a/test/functional/services/browser.js b/test/functional/services/browser.js index 8356da67bd442..9d3f6e360a780 100644 --- a/test/functional/services/browser.js +++ b/test/functional/services/browser.js @@ -28,7 +28,16 @@ export async function BrowserProvider({ getService }) { /** * Keyboard events */ - keys = Key; + keys = { + ENTER: Key.ENTER, + COMMAND: Key.COMMAND, + CONTROL: Key.CONTROL, + NULL: Key.NULL, + RETURN: Key.RETURN, + SPACE: Key.SPACE, + ARROW_RIGHT: Key.ARROW_RIGHT, + BACKSPACE: Key.BACK_SPACE + }; /** * Retrieves the a rect describing the current top-level window's size and position. diff --git a/x-pack/test/functional/page_objects/infra_home_page.ts b/x-pack/test/functional/page_objects/infra_home_page.ts index 7eb71a1196b76..73f80591c2a79 100644 --- a/x-pack/test/functional/page_objects/infra_home_page.ts +++ b/x-pack/test/functional/page_objects/infra_home_page.ts @@ -20,7 +20,7 @@ export function InfraHomePageProvider({ getService }: KibanaFunctionalTestDefaul `${testSubjSelector('waffleDatePicker')} .euiDatePicker.euiFieldText` ); - await datePickerInput.type(Array(30).fill(browser.keys.BACK_SPACE)); + await datePickerInput.type(Array(30).fill(browser.keys.BACKSPACE)); await datePickerInput.type([moment(time).format('L LTS'), browser.keys.RETURN]); },