mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 09:19:04 -04:00
[Discover] Unskip a11y flaky test (#148300)
Closes https://github.com/elastic/kibana/issues/147186 100x https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/1686
This commit is contained in:
parent
af7dd7fc56
commit
cae0c031c2
1 changed files with 16 additions and 11 deletions
|
@ -10,6 +10,7 @@ import { FtrProviderContext } from '../ftr_provider_context';
|
|||
|
||||
export default function ({ getService, getPageObjects }: FtrProviderContext) {
|
||||
const PageObjects = getPageObjects(['common', 'discover', 'header', 'share', 'timePicker']);
|
||||
const dataGrid = getService('dataGrid');
|
||||
const a11y = getService('a11y');
|
||||
const savedQueryManagementComponent = getService('savedQueryManagementComponent');
|
||||
const inspector = getService('inspector');
|
||||
|
@ -17,9 +18,9 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
|
|||
const TEST_COLUMN_NAMES = ['dayOfWeek', 'DestWeather'];
|
||||
const toasts = getService('toasts');
|
||||
const browser = getService('browser');
|
||||
const retry = getService('retry');
|
||||
|
||||
// FLAKY: https://github.com/elastic/kibana/issues/147186
|
||||
describe.skip('Discover a11y tests', () => {
|
||||
describe('Discover a11y tests', () => {
|
||||
before(async () => {
|
||||
await PageObjects.common.navigateToApp('discover');
|
||||
await PageObjects.timePicker.setCommonlyUsedTime('Last_7 days');
|
||||
|
@ -127,15 +128,19 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
|
|||
});
|
||||
|
||||
it('a11y test for data-grid table with columns', async () => {
|
||||
await testSubjects.click('toggleColumnButton-Cancelled');
|
||||
if (await testSubjects.exists('openFieldActionsButton-Carrier')) {
|
||||
await testSubjects.click('openFieldActionsButton-Carrier');
|
||||
} else {
|
||||
await testSubjects.existOrFail('fieldActionsGroup-Carrier');
|
||||
}
|
||||
await testSubjects.click('toggleColumnButton-Carrier');
|
||||
await testSubjects.click('euiFlyoutCloseButton');
|
||||
await toasts.dismissAllToasts();
|
||||
await retry.try(async () => {
|
||||
await dataGrid.clickFieldActionInFlyout('Cancelled', 'toggleColumnButton');
|
||||
});
|
||||
|
||||
await retry.try(async () => {
|
||||
await dataGrid.clickFieldActionInFlyout('Carrier', 'toggleColumnButton');
|
||||
});
|
||||
|
||||
await retry.try(async () => {
|
||||
await testSubjects.click('euiFlyoutCloseButton');
|
||||
await toasts.dismissAllToasts();
|
||||
});
|
||||
|
||||
await a11y.testAppSnapshot();
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue