Skip to content

Commit

Permalink
load data for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mattkime committed Oct 19, 2021
1 parent 31d3f80 commit c346ef5
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions test/functional/apps/management/_legacy_url_redirect.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,19 @@ import { FtrProviderContext } from '../../ftr_provider_context';
export default function ({ getPageObjects, getService }: FtrProviderContext) {
const browser = getService('browser');
const PageObjects = getPageObjects(['settings', 'common', 'header']);
const kibanaServer = getService('kibanaServer');

describe('legacy urls redirect correctly', () => {
before(async function () {
await browser.setWindowSize(1200, 800);
await kibanaServer.importExport.load('test/functional/fixtures/kbn_archiver/discover');
await kibanaServer.uiSettings.replace({});
});

after(async function afterAll() {
await kibanaServer.importExport.unload('test/functional/fixtures/kbn_archiver/discover');
});

it('redirects correctly', async () => {
await PageObjects.settings.navigateTo();
await PageObjects.settings.clickKibanaIndexPatterns();
Expand Down

0 comments on commit c346ef5

Please sign in to comment.