Skip to content

Commit

Permalink
Added functional tests for converting to Lens.
Browse files Browse the repository at this point in the history
  • Loading branch information
Kuznietsov committed Sep 27, 2022
1 parent 95ffa58 commit e0e8984
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions x-pack/test/functional/apps/lens/group3/tsvb_open_in_lens.ts
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,15 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) {
const button = await testSubjects.exists('visualizeEditInLensButton');
expect(button).to.eql(true);
});

it('should convert to Lens', async () => {
const button = await testSubjects.find('visualizeEditInLensButton');
await button.click();
await lens.waitForVisualization('mtrVis');

const metricData = await lens.getMetricVisualizationData();
expect(metricData[0].title).to.eql('Count of records');
});
});

describe('Dashboard to TSVB to Lens', () => {
Expand Down

0 comments on commit e0e8984

Please sign in to comment.