diff --git a/x-pack/test/saved_object_tagging/functional/tests/create.ts b/x-pack/test/saved_object_tagging/functional/tests/create.ts index 134b1bc48366a..0e2f3f52566c7 100644 --- a/x-pack/test/saved_object_tagging/functional/tests/create.ts +++ b/x-pack/test/saved_object_tagging/functional/tests/create.ts @@ -67,7 +67,10 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) { description: 'The name will fails validation', color: '#FF00CC', }, - { submit: true } + { + submit: true, + clearWithKeyboard: true, + } ); expect(await tagModal.isOpened()).to.be(true); @@ -86,7 +89,10 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) { description: 'The name will fails validation', color: '#FF00CC', }, - { submit: true } + { + submit: true, + clearWithKeyboard: true, + } ); expect(await tagModal.isOpened()).to.be(true); @@ -96,7 +102,10 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) { { name: 'valid name', }, - { submit: true } + { + submit: true, + clearWithKeyboard: true, + } ); await tagModal.waitUntilClosed(); @@ -116,7 +125,10 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) { description: 'I will not add this tag', color: '#FF00CC', }, - { submit: false } + { + submit: false, + clearWithKeyboard: true, + } ); await tagModal.clickCancel(); await tagModal.waitUntilClosed(); diff --git a/x-pack/test/saved_object_tagging/functional/tests/dashboard_integration.ts b/x-pack/test/saved_object_tagging/functional/tests/dashboard_integration.ts index 024c7265a72bf..18be683db1d05 100644 --- a/x-pack/test/saved_object_tagging/functional/tests/dashboard_integration.ts +++ b/x-pack/test/saved_object_tagging/functional/tests/dashboard_integration.ts @@ -118,6 +118,7 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) { }, { submit: true, + clearWithKeyboard: true, } ); diff --git a/x-pack/test/saved_object_tagging/functional/tests/edit.ts b/x-pack/test/saved_object_tagging/functional/tests/edit.ts index f29212b251827..b86c388d1a59a 100644 --- a/x-pack/test/saved_object_tagging/functional/tests/edit.ts +++ b/x-pack/test/saved_object_tagging/functional/tests/edit.ts @@ -56,7 +56,10 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) { description: 'This was edited', color: '#FFCC00', }, - { submit: true } + { + submit: true, + clearWithKeyboard: true, + } ); await tagModal.waitUntilClosed(); await tagManagementPage.waitUntilTableIsLoaded(); @@ -79,7 +82,10 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) { { name: 'a', }, - { submit: true } + { + submit: true, + clearWithKeyboard: true, + } ); expect(await tagModal.isOpened()).to.be(true); @@ -98,7 +104,10 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) { description: 'edited description', color: '#FF00CC', }, - { submit: true } + { + submit: true, + clearWithKeyboard: true, + } ); expect(await tagModal.isOpened()).to.be(true); @@ -108,7 +117,10 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) { { name: 'edited name', }, - { submit: true } + { + submit: true, + clearWithKeyboard: true, + } ); await tagModal.waitUntilClosed(); @@ -130,7 +142,10 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) { description: 'I will not add this tag', color: '#FF00CC', }, - { submit: false } + { + submit: false, + clearWithKeyboard: true, + } ); await tagModal.clickCancel(); await tagModal.waitUntilClosed(); @@ -153,13 +168,16 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) { it('should disable save button if no property is changed', async () => { await tagModal.openEdit('tag-3'); - await tagModal.fillForm(tag3Unmodified, { submit: false }); + await tagModal.fillForm(tag3Unmodified, { submit: false, clearWithKeyboard: true }); expect(await tagModal.isConfirmDisabled()).to.be(true); }); it('should enable save button if name is changed', async () => { await tagModal.openEdit('tag-3'); - await tagModal.fillForm({ ...tag3Unmodified, name: 'changed name' }, { submit: false }); + await tagModal.fillForm( + { ...tag3Unmodified, name: 'changed name' }, + { submit: false, clearWithKeyboard: true } + ); expect(await tagModal.isConfirmDisabled()).to.be(false); }); it('should enable save button if description is changed', async () => { @@ -167,14 +185,17 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) { await tagModal.fillForm( { ...tag3Unmodified, description: 'changed description' }, - { submit: false } + { submit: false, clearWithKeyboard: true } ); expect(await tagModal.isConfirmDisabled()).to.be(false); }); it('should enable save button if color is changed', async () => { await tagModal.openEdit('tag-3'); - await tagModal.fillForm({ ...tag3Unmodified, color: '#FF0000' }, { submit: false }); + await tagModal.fillForm( + { ...tag3Unmodified, color: '#FF0000' }, + { submit: false, clearWithKeyboard: true } + ); expect(await tagModal.isConfirmDisabled()).to.be(false); }); }); diff --git a/x-pack/test/saved_object_tagging/functional/tests/maps_integration.ts b/x-pack/test/saved_object_tagging/functional/tests/maps_integration.ts index 7532263b4518c..8d57f68c501c1 100644 --- a/x-pack/test/saved_object_tagging/functional/tests/maps_integration.ts +++ b/x-pack/test/saved_object_tagging/functional/tests/maps_integration.ts @@ -98,6 +98,7 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) { }, { submit: true, + clearWithKeyboard: true, } );