Unskip filter panel a11y test suite (#139834) (#141008)

(cherry picked from commit a823c3807e)

Co-authored-by: Bhavya RM <bhavya@elastic.co>
This commit is contained in:
Kibana Machine 2022-09-19 16:27:55 -06:00 committed by GitHub
parent 9e76b8ae4a
commit 3e42c1159c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -9,7 +9,7 @@
import { FtrProviderContext } from '../ftr_provider_context';
export default function ({ getService, getPageObjects }: FtrProviderContext) {
const PageObjects = getPageObjects(['common', 'discover', 'home']);
const PageObjects = getPageObjects(['common', 'discover']);
const a11y = getService('a11y');
const filterBar = getService('filterBar');
const testSubjects = getService('testSubjects');
@ -18,7 +18,6 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
describe('Filter panel', () => {
before(async () => {
await PageObjects.common.navigateToApp('discover');
await PageObjects.discover.selectIndexPattern('Kibana Sample Data Flights');
});
it('a11y test on add filter panel', async () => {
@ -40,50 +39,15 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
await browser.pressKeys(browser.keys.ESCAPE);
});
// the following tests filter panel options which changes UI
it('a11y test on filter panel options panel', async () => {
// the following tests are for the new saved query panel which also has filter panel options
it('a11y test on saved query panel- on more than one filters', async () => {
await filterBar.addFilter('DestCountry', 'is', 'AU');
await testSubjects.click('showQueryBarMenu');
await testSubjects.click('queryBarMenuPopover');
await a11y.testAppSnapshot();
});
it('a11y test on disable all filter options view', async () => {
it('a11y test on apply all panel', async () => {
await testSubjects.click('filter-sets-applyToAllFilters');
await testSubjects.click('filter-sets-disableAllFilters');
await a11y.testAppSnapshot();
});
it('a11y test on enable all filters view', async () => {
await testSubjects.click('showQueryBarMenu');
await testSubjects.click('filter-sets-applyToAllFilters');
await testSubjects.click('filter-sets-enableAllFilters');
await a11y.testAppSnapshot();
});
it('a11y test on pin all filters view', async () => {
await testSubjects.click('showQueryBarMenu');
await testSubjects.click('filter-sets-applyToAllFilters');
await testSubjects.click('filter-sets-pinAllFilters');
await a11y.testAppSnapshot();
});
it('a11y test on unpin all filters view', async () => {
await testSubjects.click('showQueryBarMenu');
await testSubjects.click('filter-sets-applyToAllFilters');
await testSubjects.click('filter-sets-unpinAllFilters');
await a11y.testAppSnapshot();
});
it('a11y test on invert inclusion of all filters view', async () => {
await testSubjects.click('showQueryBarMenu');
await testSubjects.click('filter-sets-applyToAllFilters');
await testSubjects.click('filter-sets-invertAllFilters');
await a11y.testAppSnapshot();
});
it('a11y test on remove all filtes view', async () => {
await testSubjects.click('showQueryBarMenu');
await testSubjects.click('filter-sets-removeAllFilters');
await a11y.testAppSnapshot();
});
});