diff --git a/x-pack/test/functional/apps/lens/group6/annotations.ts b/x-pack/test/functional/apps/lens/group6/annotations.ts index cac637ca64ff6..cd9986b29ab03 100644 --- a/x-pack/test/functional/apps/lens/group6/annotations.ts +++ b/x-pack/test/functional/apps/lens/group6/annotations.ts @@ -26,8 +26,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) { const from = 'Sep 19, 2015 @ 06:31:44.000'; const to = 'Sep 23, 2015 @ 18:31:44.000'; - // Failing: See https://github.com/elastic/kibana/issues/167552 - describe.skip('lens annotations tests', () => { + describe('lens annotations tests', () => { before(async () => { await PageObjects.common.setTime({ from, to }); }); @@ -148,6 +147,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) { }, { submit: true, + clearWithKeyboard: true, } ); diff --git a/x-pack/test/functional/apps/lens/group6/lens_tagging.ts b/x-pack/test/functional/apps/lens/group6/lens_tagging.ts index b8d9c332f64f5..1734858f83bc7 100644 --- a/x-pack/test/functional/apps/lens/group6/lens_tagging.ts +++ b/x-pack/test/functional/apps/lens/group6/lens_tagging.ts @@ -29,8 +29,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) { const lensTag = 'extreme-lens-tag'; const lensTitle = 'lens tag test'; - // Failing: See https://github.com/elastic/kibana/issues/167561 - describe.skip('lens tagging', () => { + describe('lens tagging', () => { before(async () => { await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/logstash_functional'); await PageObjects.timePicker.setDefaultAbsoluteRangeViaUiSettings(); @@ -84,6 +83,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) { }, { submit: true, + clearWithKeyboard: true, } ); diff --git a/x-pack/test/functional/page_objects/tag_management_page.ts b/x-pack/test/functional/page_objects/tag_management_page.ts index 7e8fbd8346c1d..50d1453c1fe0f 100644 --- a/x-pack/test/functional/page_objects/tag_management_page.ts +++ b/x-pack/test/functional/page_objects/tag_management_page.ts @@ -51,13 +51,23 @@ class TagModal extends FtrService { * If a field is undefined, will not set the value (use a empty string for that) * If `submit` is true, will call `clickConfirm` once the fields have been filled. */ - async fillForm(fields: FillTagFormFields, { submit = false }: { submit?: boolean } = {}) { + async fillForm( + fields: FillTagFormFields, + { + submit = false, + clearWithKeyboard = false, + }: { submit?: boolean; clearWithKeyboard?: boolean } = {} + ) { if (fields.name !== undefined) { await this.testSubjects.click('createModalField-name'); - await this.testSubjects.setValue('createModalField-name', fields.name); + await this.testSubjects.setValue('createModalField-name', fields.name, { + clearWithKeyboard, + }); } if (fields.color !== undefined) { - await this.testSubjects.setValue('~createModalField-color', fields.color); + await this.testSubjects.setValue('~createModalField-color', fields.color, { + clearWithKeyboard, + }); // Close the popover before moving to the next input, as it can get in the way of interacting with other elements await this.testSubjects.existOrFail('euiSaturation'); await this.retry.try(async () => { @@ -69,7 +79,9 @@ class TagModal extends FtrService { } if (fields.description !== undefined) { await this.testSubjects.click('createModalField-description'); - await this.testSubjects.setValue('createModalField-description', fields.description); + await this.testSubjects.setValue('createModalField-description', fields.description, { + clearWithKeyboard, + }); } if (submit) {