Skip to content

Commit

Permalink
wip accessibility
Browse files Browse the repository at this point in the history
  • Loading branch information
rashmivkulkarni committed Sep 18, 2020
1 parent 32a2f2e commit ea5d606
Showing 1 changed file with 11 additions and 26 deletions.
37 changes: 11 additions & 26 deletions x-pack/test/accessibility/apps/dashboard_edit_panel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
await dashboard.loadSavedDashboard(drilldowns.DASHBOARD_WITH_PIE_CHART_NAME);
});

// after(async () => {
// await esArchiver.unload('dashboard/drilldowns');
// });
after(async () => {
await esArchiver.unload('dashboard/drilldowns');
});

it('dashboard panel main edit ', async () => {
await testSubjects.click('dashboardEditMode');
Expand Down Expand Up @@ -62,7 +62,6 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
// clone panel
it('dashboard embeddable clone panel', async () => {
await testSubjects.click('embeddablePanelAction-clonePanel');
// await testSubjects.click('embeddablePanelAction-CUSTOM_TIME_RANGE');
await a11y.testAppSnapshot();
});

Expand All @@ -83,13 +82,14 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
await a11y.testAppSnapshot();
});

// fullscreen
it('dashboard embeddable fullscreen', async () => {
await testSubjects.click('embeddablePanelToggleMenuIcon');
await testSubjects.click('embeddablePanelAction-togglePanel');
await testSubjects.click('embeddablePanelAction-togglePanel');
await a11y.testAppSnapshot();
});
// // fullscreen
// it('dashboard embeddable fullscreen', async () => {
// await testSubjects.click('embeddablePanelToggleMenuIcon');
// await testSubjects.click('embeddablePanelAction-togglePanel');
// // await testSubjects.moveMouseTo('flyoutCloseButton');
// await testSubjects.click('embeddablePanelAction-togglePanel');
// await a11y.testAppSnapshot();
// });

// replace panel
it('dashboard embeddable replace panel', async () => {
Expand All @@ -104,20 +104,5 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
await testSubjects.click('embeddablePanelAction-deletePanel');
await a11y.testAppSnapshot();
});

// it('dashboard embeddable open flyout and drilldown', async () => {
// await testSubjects.click('embeddablePanelAction-OPEN_FLYOUT_ADD_DRILLDOWN');
// await a11y.testAppSnapshot();
// });

// it('dashboard embeddable open flyout and drilldown', async () => {
// await testSubjects.click('embeddablePanelAction-OPEN_FLYOUT_ADD_DRILLDOWN');
// await a11y.testAppSnapshot();
// });

// it('dashboard panel inspect', async () => {
// await dashboardPanelActions.openInspectorByTitle('[Flights] Airline Carrier');
// await a11y.testAppSnapshot();
// });
});
}

0 comments on commit ea5d606

Please sign in to comment.