Skip to content

Commit

Permalink
cleanStandardList of saved objects in init, and after
Browse files Browse the repository at this point in the history
  • Loading branch information
Lee Drengenberg committed Jun 7, 2022
1 parent 1e71476 commit d5cef97
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/functional/apps/dashboard/group4/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import { FtrProviderContext } from '../../../ftr_provider_context';
export default function ({ getService, loadTestFile }: FtrProviderContext) {
const browser = getService('browser');
const esArchiver = getService('esArchiver');
const kibanaServer = getService('kibanaServer');

async function loadLogstash() {
await browser.setWindowSize(1200, 900);
Expand All @@ -19,6 +20,7 @@ export default function ({ getService, loadTestFile }: FtrProviderContext) {

async function unloadLogstash() {
await esArchiver.unload('test/functional/fixtures/es_archiver/logstash_functional');
await kibanaServer.savedObjects.cleanStandardList();
}

describe('dashboard app - group 4', function () {
Expand Down
1 change: 1 addition & 0 deletions test/functional/page_objects/dashboard_page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ export class DashboardPageObject extends FtrService {

async initTests({ kibanaIndex = this.kibanaIndex, defaultIndex = this.logstashIndex } = {}) {
this.log.debug('load kibana index with visualizations and log data');
await this.kibanaServer.savedObjects.cleanStandardList();
await this.kibanaServer.importExport.load(kibanaIndex);
await this.kibanaServer.uiSettings.replace({ defaultIndex });
await this.common.navigateToApp('dashboard');
Expand Down

0 comments on commit d5cef97

Please sign in to comment.