Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

a11y tests for watcher. Minimal in scope. #135046

Merged
merged 6 commits into from
Jun 24, 2022
Merged
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 40 additions & 0 deletions x-pack/test/accessibility/apps/watcher.ts
Original file line number Diff line number Diff line change
@@ -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 () {
rashmivkulkarni marked this conversation as resolved.
Show resolved Hide resolved
await PageObjects.watcher.deleteWatch();
await a11y.testAppSnapshot();
});
});
}
2 changes: 2 additions & 0 deletions x-pack/test/accessibility/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,9 @@ 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'),

],

pageObjects,
Expand Down