Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
  • Loading branch information
Tyler Smalley committed Jun 3, 2021
1 parent 02c8ba8 commit 2074668
Show file tree
Hide file tree
Showing 103 changed files with 3,675 additions and 9,455 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,7 +19,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {

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

after(async () => {
await kibanaServer.importExport.unload('discover');
await esArchiver.unload('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 @@ -16,7 +16,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {

describe('Management', () => {
before(async () => {
await esArchiver.load('discover');
await kibanaServer.importExport.load('discover');
await esArchiver.loadIfNeeded('logstash_functional');
await kibanaServer.uiSettings.update({
defaultIndex: 'logstash-*',
Expand All @@ -25,6 +25,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
});

after(async () => {
await kibanaServer.importExport.unload('discover');
await esArchiver.unload('logstash_functional');
});

Expand Down
6 changes: 4 additions & 2 deletions test/accessibility/apps/visualize.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,16 @@ 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('discover');
await kibanaServer.importExport.load('discover');
await PageObjects.common.navigateToApp('visualize');
});

after(() => kibanaServer.importExport.unload('discover'));

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

This file was deleted.

Binary file not shown.
Loading

0 comments on commit 2074668

Please sign in to comment.