Remove deprecated geo map from dashboard tests (#121441)

This commit is contained in:
Poff Poffenberger 2021-12-16 13:57:28 -06:00 committed by GitHub
parent d1efcd23e2
commit 6f5625b84f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 51 deletions

View file

@ -52,7 +52,6 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
await dashboardExpect.dataTableRowCount(5);
await dashboardExpect.tagCloudWithValuesFound(['CN', 'IN', 'US', 'BR', 'ID']);
// TODO add test for 'tsvb gauge' viz
// TODO add test for 'geo map' viz
// This tests the presence of the two input control embeddables
await dashboardExpect.inputControlItemCount(5);
await dashboardExpect.tsvbTableCellCount(20);
@ -135,7 +134,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
visNames.push(await dashboardAddPanel.addVisualization('Filter Bytes Test: vega'));
await PageObjects.header.waitUntilLoadingHasFinished();
await dashboardExpect.visualizationsArePresent(visNames);
expect(visNames.length).to.be.equal(26);
expect(visNames.length).to.be.equal(25);
await PageObjects.dashboard.waitForRenderComplete();
});
@ -146,7 +145,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
await dashboardAddPanel.closeAddPanel();
await PageObjects.header.waitUntilLoadingHasFinished();
await dashboardExpect.visualizationsArePresent(visAndSearchNames);
expect(visAndSearchNames.length).to.be.equal(27);
expect(visAndSearchNames.length).to.be.equal(26);
await PageObjects.dashboard.waitForRenderComplete();
await PageObjects.dashboard.saveDashboard('embeddable rendering test', {

File diff suppressed because one or more lines are too long

View file

@ -32,9 +32,7 @@ export class DashboardExpectService extends FtrService {
async visualizationsArePresent(vizList: string[]) {
this.log.debug('Checking all visualisations are present on dashsboard');
let notLoaded = await this.dashboard.getNotLoadedVisualizations(vizList);
// TODO: Determine issue occasionally preventing 'geo map' from loading
notLoaded = notLoaded.filter((x) => x !== 'Rendering Test: geo map');
const notLoaded = await this.dashboard.getNotLoadedVisualizations(vizList);
expect(notLoaded).to.be.empty();
}