Skip to content

Commit

Permalink
Fix plugin functional tests #2
Browse files Browse the repository at this point in the history
  • Loading branch information
rudolf committed Jan 27, 2021
1 parent 7898f0c commit 55b1461
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,12 @@ import '../../plugins/core_provider_plugin/types';

export default function ({ getService }: PluginFunctionalProviderContext) {
const supertest = getService('supertest');
const esArchiver = getService('esArchiver');

describe('index patterns', function () {
before(async () => {
await esArchiver.emptyKibanaIndex();
});
let indexPatternId = '';

it('can create an index pattern', async () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,15 @@ import path from 'path';
import expect from '@kbn/expect';
import { PluginFunctionalProviderContext } from '../../services';

export default function ({ getPageObjects }: PluginFunctionalProviderContext) {
export default function ({ getPageObjects, getService }: PluginFunctionalProviderContext) {
const PageObjects = getPageObjects(['common', 'settings', 'header', 'savedObjects']);
const esArchiver = getService('esArchiver');

describe('import warnings', () => {
before(async () => {
await esArchiver.emptyKibanaIndex();
});

beforeEach(async () => {
await PageObjects.settings.navigateTo();
await PageObjects.settings.clickKibanaSavedObjects();
Expand Down

0 comments on commit 55b1461

Please sign in to comment.