mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 09:19:04 -04:00
a11y tests for watcher. Minimal in scope. (#135046)
* a11y watcher wip * modified the tests * addressed the nits
This commit is contained in:
parent
8a3975a410
commit
f75976fea6
2 changed files with 41 additions and 0 deletions
40
x-pack/test/accessibility/apps/watcher.ts
Normal file
40
x-pack/test/accessibility/apps/watcher.ts
Normal file
|
@ -0,0 +1,40 @@
|
|||
/*
|
||||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
||||
* or more contributor license agreements. Licensed under the Elastic License
|
||||
* 2.0; you may not use this file except in compliance with the Elastic License
|
||||
* 2.0.
|
||||
*/
|
||||
|
||||
// a11y tests for spaces, space selection and space creation and feature controls
|
||||
|
||||
import { FtrProviderContext } from '../ftr_provider_context';
|
||||
|
||||
export default function ({ getService, getPageObjects }: FtrProviderContext) {
|
||||
const PageObjects = getPageObjects(['common', 'home', 'header', 'watcher', 'security']);
|
||||
const a11y = getService('a11y');
|
||||
|
||||
describe('Kibana Stack Management Watcher a11y tests', () => {
|
||||
before(async () => {
|
||||
await PageObjects.common.navigateToApp('watcher');
|
||||
});
|
||||
|
||||
it('renders the watcher page without a11y errors', async () => {
|
||||
await a11y.testAppSnapshot();
|
||||
});
|
||||
|
||||
it('a11y tests for create watch button', async function () {
|
||||
await PageObjects.watcher.createWatch('test', 'test');
|
||||
await a11y.testAppSnapshot();
|
||||
});
|
||||
|
||||
it('a11y tests for the watch list page', async function () {
|
||||
await PageObjects.watcher.getWatch('test');
|
||||
await a11y.testAppSnapshot();
|
||||
});
|
||||
|
||||
it('a11y tests for deleting the watches', async function () {
|
||||
await PageObjects.watcher.deleteWatch();
|
||||
await a11y.testAppSnapshot();
|
||||
});
|
||||
});
|
||||
}
|
|
@ -48,6 +48,7 @@ export default async function ({ readConfigFile }: FtrConfigProviderContext) {
|
|||
require.resolve('./apps/tags'),
|
||||
require.resolve('./apps/search_sessions'),
|
||||
require.resolve('./apps/stack_monitoring'),
|
||||
require.resolve('./apps/watcher'),
|
||||
require.resolve('./apps/rollup_jobs'),
|
||||
],
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue