diff --git a/test/functional/apps/dashboard_elements/input_control_vis/input_control_options.ts b/test/functional/apps/dashboard_elements/input_control_vis/input_control_options.ts index cccf19de4070a..6de500210f2e9 100644 --- a/test/functional/apps/dashboard_elements/input_control_vis/input_control_options.ts +++ b/test/functional/apps/dashboard_elements/input_control_vis/input_control_options.ts @@ -23,6 +23,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) { const inspector = getService('inspector'); const find = getService('find'); const comboBox = getService('comboBox'); + const retry = getService('retry'); const FIELD_NAME = 'machine.os.raw'; describe('input control options', () => { @@ -81,6 +82,9 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) { it('should replace existing filter pill(s) when new item is selected', async () => { await comboBox.clear('listControlSelect0'); + await retry.waitFor('input control is clear', async () => { + return (await comboBox.doesComboBoxHaveSelectedOptions('listControlSelect0')) === false; + }); await comboBox.set('listControlSelect0', 'osx'); await visEditor.inputControlSubmit(); await common.sleep(1000);