Skip to content

Commit

Permalink
draft search profiler accessibility tests
Browse files Browse the repository at this point in the history
  • Loading branch information
rashmivkulkarni committed Apr 2, 2020
1 parent e202fe7 commit ff6f3d2
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 1 deletion.
26 changes: 26 additions & 0 deletions x-pack/test/accessibility/apps/search_profiler.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
/*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License;
* you may not use this file except in compliance with the Elastic License.
*/

// import expect from '@kbn/expect';
import { FtrProviderContext } from '../ftr_provider_context';

export default function({ getService, getPageObjects }: FtrProviderContext) {
const PageObjects = getPageObjects(['common', 'security']);
const a11y = getService('a11y');
const log = getService('log');
// const testSubjects = getService('testSubjects');

describe('Dev tools search profiler', () => {
before(async () => {
await PageObjects.common.navigateToApp('searchProfiler');
});

it('Dev tools search profiler view', async () => {
log.debug('hello');
await a11y.testAppSnapshot();
});
});
}
5 changes: 4 additions & 1 deletion x-pack/test/accessibility/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,10 @@ export default async function({ readConfigFile }: FtrConfigProviderContext) {

return {
...functionalConfig.getAll(),
testFiles: [require.resolve('./apps/login_page')],
testFiles: [
require.resolve('./apps/login_page'),
require.resolve('./apps/searchprofiler_editor'),
],
pageObjects,
services,

Expand Down

0 comments on commit ff6f3d2

Please sign in to comment.