Unskip filter panel a11y test suite (#139834)

This commit is contained in:
Bhavya RM 2022-09-19 17:32:49 -04:00 committed by GitHub
parent 385132e95d
commit a823c3807e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -9,17 +9,15 @@
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');
const browser = getService('browser');
// FLAKY: https://github.com/elastic/kibana/issues/139659
describe.skip('Filter panel', () => {
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 () => {
@ -41,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();
});
});