Skip to content

Commit

Permalink
stabilize Lens a11y tests and skip data table
Browse files Browse the repository at this point in the history
  • Loading branch information
flash1293 committed Feb 2, 2021
1 parent f581365 commit 91b18d4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
7 changes: 4 additions & 3 deletions x-pack/test/accessibility/apps/lens.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {

await PageObjects.lens.configureDimension({
dimension: 'lnsXY_xDimensionPanel > lns-empty-dimension',
operation: 'date_histogram',
field: 'timestamp',
operation: 'terms',
field: 'DestCityName',
});

await PageObjects.lens.configureDimension({
Expand All @@ -61,7 +61,8 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
await a11y.testAppSnapshot();
});

it('lens datatable', async () => {
// blocked by https://github.com/elastic/eui/issues/4474
it.skip('lens datatable', async () => {
await PageObjects.lens.switchToVisualization('lnsDatatable');
await a11y.testAppSnapshot();
});
Expand Down
1 change: 1 addition & 0 deletions x-pack/test/functional/page_objects/lens_page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -349,6 +349,7 @@ export function LensPageProvider({ getService, getPageObjects }: FtrProviderCont
async switchToVisualization(subVisualizationId: string) {
await this.openChartSwitchPopover();
await testSubjects.click(`lnsChartSwitchPopover_${subVisualizationId}`);
await PageObjects.header.waitUntilLoadingHasFinished();
},

async openChartSwitchPopover() {
Expand Down

0 comments on commit 91b18d4

Please sign in to comment.