Skip to content

Commit

Permalink
Updated embeddable library tests
Browse files Browse the repository at this point in the history
  • Loading branch information
cqliu1 committed Feb 3, 2021
1 parent a9c7709 commit c682ae9
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
8 changes: 8 additions & 0 deletions test/functional/apps/dashboard/embeddable_library.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,10 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
updatedPanel
);
expect(libraryActionExists).to.be(false);

await dashboardAddPanel.clickOpenAddPanel();
await dashboardAddPanel.filterEmbeddableNames('Rendering Test: heatmap');
await find.existsByLinkText('Rendering Test: heatmap');
});

it('save visualize panel to embeddable library', async () => {
Expand Down Expand Up @@ -81,6 +85,10 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
updatedPanel
);
expect(libraryActionExists).to.be(false);

await dashboardAddPanel.clickOpenAddPanel();
await dashboardAddPanel.filterEmbeddableNames('Rendering Test: geo map');
await find.existsByLinkText('Rendering Test: geo map');
});

it('save map panel to embeddable library', async () => {
Expand Down
4 changes: 4 additions & 0 deletions x-pack/test/functional/apps/lens/dashboard.ts
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,10 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
updatedPanel
);
expect(libraryActionExists).to.be(true);

await dashboardAddPanel.clickOpenAddPanel();
await dashboardAddPanel.filterEmbeddableNames('lnsPieVis');
await find.existsByLinkText('lnsPieVis');
});
});
}

0 comments on commit c682ae9

Please sign in to comment.