From 32a2f2e8a7f6bcfe5ae6037f8221360f0e1be5f6 Mon Sep 17 00:00:00 2001 From: Rashmi Kulkarni Date: Thu, 17 Sep 2020 14:17:08 -0700 Subject: [PATCH] wip -accessibility --- .../apps/dashboard_edit_panel.ts | 29 ++++++++++++------- 1 file changed, 18 insertions(+), 11 deletions(-) diff --git a/x-pack/test/accessibility/apps/dashboard_edit_panel.ts b/x-pack/test/accessibility/apps/dashboard_edit_panel.ts index c3dbc0a94c612..eecb94353d27c 100644 --- a/x-pack/test/accessibility/apps/dashboard_edit_panel.ts +++ b/x-pack/test/accessibility/apps/dashboard_edit_panel.ts @@ -46,20 +46,26 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) { await a11y.testAppSnapshot(); }); - // custom time range - it('dashboard embeddable custom time range', async () => { - await testSubjects.click('embeddablePanelAction-CUSTOM_TIME_RANGE'); - await testSubjects.click('cancelPerPanelTimeRangeButton'); - await a11y.testAppSnapshot(); - }); - - // // clone panel - // it('dashboard embeddable clone panel', async () => { - // await testSubjects.click('embeddablePanelToggleMenuIcon'); + // // custom time range + // it('dashboard embeddable custom time range', async () => { // await testSubjects.click('embeddablePanelAction-CUSTOM_TIME_RANGE'); // await a11y.testAppSnapshot(); + // await retry.waitFor( + // 'Ensure cancel per panel Time Range Button exists', + // async () => await testSubjects.exists('cancelPerPanelTimeRangeButton') + // ); + // // await testSubjects.moveMouseTo('cancelPerPanelTimeRangeButton'); + // await testSubjects.click('cancelPerPanelTimeRangeButton'); // }); + // [duplicate-id]: Ensures every id attribute value is unique + // clone panel + it('dashboard embeddable clone panel', async () => { + await testSubjects.click('embeddablePanelAction-clonePanel'); + // await testSubjects.click('embeddablePanelAction-CUSTOM_TIME_RANGE'); + await a11y.testAppSnapshot(); + }); + // inspector panel it('dashboard embeddable open inspector', async () => { await testSubjects.click('embeddablePanelToggleMenuIcon'); @@ -72,7 +78,8 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) { it('dashboard embeddable open flyout and drilldown', async () => { await testSubjects.click('embeddablePanelToggleMenuIcon'); await testSubjects.click('embeddablePanelAction-OPEN_FLYOUT_ADD_DRILLDOWN'); - await testSubjects.click('embeddablePanelAction-flyoutCloseButton'); + // await testSubjects.moveMouseTo('flyoutCloseButton'); + await testSubjects.click('flyoutCloseButton'); await a11y.testAppSnapshot(); });