[Lens] Fix add to dashboard functional test flakiness (#111887)

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
This commit is contained in:
Marco Liberati 2021-09-14 18:53:17 +02:00 committed by GitHub
parent 458a57939b
commit 2262cac584
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 23 deletions

View file

@ -62,8 +62,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
await PageObjects.lens.assertMetric('Maximum of bytes', '19,986');
};
// FLAKY: https://github.com/elastic/kibana/issues/111628
describe.skip('lens add-to-dashboards tests', () => {
describe('lens add-to-dashboards tests', () => {
it('should allow new lens to be added by value to a new dashboard', async () => {
await createNewLens();
await PageObjects.lens.save('New Lens from Modal', false, false, false, 'new');
@ -238,17 +237,6 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
// issue #111104
it('should add a Lens heatmap to the dashboard', async () => {
await PageObjects.common.navigateToApp('dashboard');
await PageObjects.dashboard.clickNewDashboard();
await PageObjects.dashboard.saveDashboard('My Wonderful Heatmap dashboard');
await PageObjects.dashboard.gotoDashboardLandingPage();
await listingTable.searchAndExpectItemsCount(
'dashboard',
'My Wonderful Heatmap dashboard',
1
);
await PageObjects.visualize.navigateToNewVisualization();
await PageObjects.visualize.clickVisType('lens');
await PageObjects.lens.goToTimeRange();
@ -275,14 +263,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
await testSubjects.click('lnsPalettePanel_dynamicColoring_rangeType_groups_number');
await PageObjects.header.waitUntilLoadingHasFinished();
await PageObjects.lens.save(
'New Lens Heatmap',
false,
false,
true,
'existing',
'My Wonderful Heatmap dashboard'
);
await PageObjects.lens.save('New Lens Heatmap', false, false, true, 'new');
await PageObjects.dashboard.waitForRenderComplete();

View file

@ -11,8 +11,7 @@ import { FtrProviderContext } from '../../ftr_provider_context';
export default function ({ getPageObjects }: FtrProviderContext) {
const PageObjects = getPageObjects(['visualize', 'lens', 'common', 'header']);
// FLAKY: https://github.com/elastic/kibana/issues/108352
describe.skip('lens drag and drop tests', () => {
describe('lens drag and drop tests', () => {
describe('basic drag and drop', () => {
it('should construct the basic split xy chart', async () => {
await PageObjects.visualize.navigateToNewVisualization();