Skip to content

Commit

Permalink
[Lens] Fix add to dashboard functional test flakiness (#111887) (#112147
Browse files Browse the repository at this point in the history
)

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Marco Liberati <dej611@users.noreply.github.com>
  • Loading branch information
kibanamachine and dej611 authored Sep 15, 2021
1 parent 70f2677 commit bf4bee4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 23 deletions.
23 changes: 2 additions & 21 deletions x-pack/test/functional/apps/lens/add_to_dashboard.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down Expand Up @@ -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();
Expand All @@ -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();

Expand Down
3 changes: 1 addition & 2 deletions x-pack/test/functional/apps/lens/drag_and_drop.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit bf4bee4

Please sign in to comment.