Skip to content

Commit

Permalink
update canvas a11y test to import SO not re-create index (#168944)
Browse files Browse the repository at this point in the history
## Summary

Related to #161882

There is no need to re-create `.kibana` index, changing to imported
saved objects.

(cherry picked from commit a1f360e)

# Conflicts:
#	x-pack/test/accessibility/apps/canvas.ts
  • Loading branch information
dmlemeshko committed Oct 30, 2023
1 parent 64486b1 commit 3fdf6d7
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 316 deletions.
10 changes: 8 additions & 2 deletions x-pack/test/accessibility/apps/canvas.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,22 @@ import { FtrProviderContext } from '../ftr_provider_context';
export default function ({ getService, getPageObjects }: FtrProviderContext) {
const a11y = getService('a11y');
const testSubjects = getService('testSubjects');
const esArchiver = getService('esArchiver');
const kibanaServer = getService('kibanaServer');
const retry = getService('retry');
const { common } = getPageObjects(['common']);

describe('Canvas Accessibility', () => {
before(async () => {
await esArchiver.load('x-pack/test/functional/es_archives/canvas/default');
await kibanaServer.importExport.load(
'x-pack/test/functional/fixtures/kbn_archiver/canvas/default'
);
await common.navigateToApp('canvas');
});

after(async () => {
await kibanaServer.savedObjects.cleanStandardList();
});

it('loads workpads', async function () {
await retry.waitFor(
'canvas workpads visible',
Expand Down
Binary file not shown.
314 changes: 0 additions & 314 deletions x-pack/test/functional/es_archives/canvas/default/mappings.json

This file was deleted.

0 comments on commit 3fdf6d7

Please sign in to comment.