Skip to content

Commit

Permalink
XPack-Accessibility- Grok Debugger Test (#62104)
Browse files Browse the repository at this point in the history
* accessibility tests for dashboard panel

* added back the skipped test as it is still required to pass through th ea11ySnapshot

* accessibility grok debugger test - currently skipped due to aria label violation

* deleting a file which was added accidentally

* deleting a file which was added accidentally

* incorporated feedback split tests into seperate tests and skipped the test as there is a aria violation

* commented out the grok debugger config file entry

* re-added the test in config file

* updated the tests to match 

...the actions they are performing

* fixed syntax

Co-authored-by: Elastic Machine <[email protected]>
  • Loading branch information
rashmivkulkarni and elasticmachine authored Apr 3, 2020
1 parent fbf5040 commit cccb66e
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 1 deletion.
36 changes: 36 additions & 0 deletions x-pack/test/accessibility/apps/grok_debugger.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
/*
* 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 { FtrProviderContext } from '../ftr_provider_context';

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

// this test is failing as there is a violation https://github.com/elastic/kibana/issues/62102
describe.skip('Dev tools grok debugger', () => {
before(async () => {
await PageObjects.common.navigateToApp('grokDebugger');
await grokDebugger.assertExists();
});

it('Dev tools grok debugger set input', async () => {
await grokDebugger.setEventInput('SegerCommaBob');
await a11y.testAppSnapshot();
});

it('Dev tools grok debugger set pattern', async () => {
await grokDebugger.setPatternInput('%{USERNAME:u}');
await a11y.testAppSnapshot();
});

it('Dev tools grok debugger simulate', async () => {
await grokDebugger.clickSimulate();
await a11y.testAppSnapshot();
});
});
}
2 changes: 1 addition & 1 deletion x-pack/test/accessibility/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export default async function({ readConfigFile }: FtrConfigProviderContext) {

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

Expand Down

0 comments on commit cccb66e

Please sign in to comment.