Skip to content

Commit

Permalink
Fix build_dashboard serverless tests for MKI runs (elastic#171473)
Browse files Browse the repository at this point in the history
## Summary

This PR fixes the build_dashboard serverless ES3 tests for MKI runs by
making sure there are no pre-existing data views.
  • Loading branch information
pheyos authored Nov 18, 2023
1 parent 4259cdb commit e04173d
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) {
describe('Building a new dashboard', function () {
before(async () => {
await PageObjects.svlCommonPage.login();
await kibanaServer.savedObjects.cleanStandardList();
await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/logstash_functional');
await kibanaServer.importExport.load(
'x-pack/test/functional/fixtures/kbn_archiver/lens/lens_basic.json'
Expand All @@ -44,11 +45,12 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) {
await kibanaServer.importExport.unload(
'x-pack/test/functional/fixtures/kbn_archiver/lens/lens_basic.json'
);
await kibanaServer.savedObjects.cleanStandardList();
await PageObjects.svlCommonPage.forceLogout();
});

it('can add a lens panel by value', async () => {
await PageObjects.lens.createAndAddLensFromDashboard({ ignoreTimeFilter: true });
await PageObjects.lens.createAndAddLensFromDashboard({});
const newPanelCount = await PageObjects.dashboard.getPanelCount();
expect(newPanelCount).to.eql(1);
});
Expand Down

0 comments on commit e04173d

Please sign in to comment.