Skip to content

Commit

Permalink
[Archive Migration][Partial] test/functional/fixtures/es_archiver/dis…
Browse files Browse the repository at this point in the history
…cover

Comes from #102827

Helps with #108503

Piggy back off of the work from @tylersmalley
Only inlude the changes under the test/accessibility/apps/
folder.
  • Loading branch information
wayneseymour committed Aug 25, 2021
1 parent c34cbbc commit 5e6306a
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
3 changes: 2 additions & 1 deletion test/accessibility/apps/discover.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {

describe('Discover a11y tests', () => {
before(async () => {
await esArchiver.load('test/functional/fixtures/es_archiver/discover');
await esArchiver.loadIfNeeded('test/functional/fixtures/es_archiver/logstash_functional');
await kibanaServer.importExport.load('test/functional/fixtures/kbn_archiver/discover');
await kibanaServer.uiSettings.update({
defaultIndex: 'logstash-*',
'doc_table:legacy': true,
Expand All @@ -30,6 +30,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
});

after(async () => {
await kibanaServer.importExport.unload('test/functional/fixtures/kbn_archiver/discover');
await esArchiver.unload('test/functional/fixtures/es_archiver/logstash_functional');
});

Expand Down
3 changes: 2 additions & 1 deletion test/accessibility/apps/management.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,16 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {

describe('Management', () => {
before(async () => {
await esArchiver.load('test/functional/fixtures/es_archiver/discover');
await esArchiver.loadIfNeeded('test/functional/fixtures/es_archiver/logstash_functional');
await kibanaServer.importExport.load('test/functional/fixtures/kbn_archiver/discover');
await kibanaServer.uiSettings.update({
defaultIndex: 'logstash-*',
});
await PageObjects.settings.navigateTo();
});

after(async () => {
await kibanaServer.importExport.unload('test/functional/fixtures/kbn_archiver/discover');
await esArchiver.unload('test/functional/fixtures/es_archiver/logstash_functional');
});

Expand Down
8 changes: 6 additions & 2 deletions test/accessibility/apps/visualize.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,18 @@ import { FtrProviderContext } from '../ftr_provider_context';
export default function ({ getService, getPageObjects }: FtrProviderContext) {
const PageObjects = getPageObjects(['common', 'visualize', 'header']);
const a11y = getService('a11y');
const esArchiver = getService('esArchiver');
const kibanaServer = getService('kibanaServer');

describe('Visualize', () => {
before(async () => {
await esArchiver.loadIfNeeded('test/functional/fixtures/es_archiver/discover');
await kibanaServer.importExport.load('test/functional/fixtures/kbn_archiver/discover');
await PageObjects.common.navigateToApp('visualize');
});

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

it('visualize', async () => {
await a11y.testAppSnapshot();
});
Expand Down

0 comments on commit 5e6306a

Please sign in to comment.