From 20c0f83015568d196a0a8c55b7f58409fe5da529 Mon Sep 17 00:00:00 2001 From: rashmikulkarni Date: Mon, 7 Nov 2022 18:22:00 -0800 Subject: [PATCH 1/2] testing a flaky functional test --- .../input_control_vis/chained_controls.ts | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/test/functional/apps/dashboard_elements/input_control_vis/chained_controls.ts b/test/functional/apps/dashboard_elements/input_control_vis/chained_controls.ts index 2f91c789a478b..c2c3da97a1d55 100644 --- a/test/functional/apps/dashboard_elements/input_control_vis/chained_controls.ts +++ b/test/functional/apps/dashboard_elements/input_control_vis/chained_controls.ts @@ -16,10 +16,11 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) { const testSubjects = getService('testSubjects'); const find = getService('find'); const comboBox = getService('comboBox'); + const log = getService('log'); // FLAKY: https://github.com/elastic/kibana/issues/96997 // FLAKY: https://github.com/elastic/kibana/issues/100372 - describe.skip('chained controls', function () { + describe('chained controls', function () { this.tags('includeFirefox'); before(async () => { @@ -41,6 +42,14 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) { }); it('should filter child control options by parent control value', async () => { + // await PageObjects.common.sleep(3000); + // "optionList open: false" --- when the test passes. + log.debug( + `------ optionList open: ${await testSubjects.exists('~comboBoxOptionsList', { + timeout: 50, + })}` + ); + await comboBox.set('listControlSelect0', 'BR'); const childControlMenu = await comboBox.getOptionsList('listControlSelect1'); From 2d93c1b55f39f87938650e1d262399cb751f4d0b Mon Sep 17 00:00:00 2001 From: rashmikulkarni Date: Tue, 8 Nov 2022 11:53:04 -0800 Subject: [PATCH 2/2] unskipping the functional test - to check on CI --- .../input_control_vis/chained_controls.ts | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/test/functional/apps/dashboard_elements/input_control_vis/chained_controls.ts b/test/functional/apps/dashboard_elements/input_control_vis/chained_controls.ts index c2c3da97a1d55..0b2b4ac1b78ef 100644 --- a/test/functional/apps/dashboard_elements/input_control_vis/chained_controls.ts +++ b/test/functional/apps/dashboard_elements/input_control_vis/chained_controls.ts @@ -16,10 +16,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) { const testSubjects = getService('testSubjects'); const find = getService('find'); const comboBox = getService('comboBox'); - const log = getService('log'); - // FLAKY: https://github.com/elastic/kibana/issues/96997 - // FLAKY: https://github.com/elastic/kibana/issues/100372 describe('chained controls', function () { this.tags('includeFirefox'); @@ -42,16 +39,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) { }); it('should filter child control options by parent control value', async () => { - // await PageObjects.common.sleep(3000); - // "optionList open: false" --- when the test passes. - log.debug( - `------ optionList open: ${await testSubjects.exists('~comboBoxOptionsList', { - timeout: 50, - })}` - ); - await comboBox.set('listControlSelect0', 'BR'); - const childControlMenu = await comboBox.getOptionsList('listControlSelect1'); expect(childControlMenu.trim().split('\n').join()).to.equal( '14.61.182.136,3.174.21.181,6.183.121.70,71.241.97.89,9.69.255.135'