Skip to content

Commit 47facb8

Browse files
authored
[Discover] Improve and unskip a11y context view test (#66959) (#67079)
1 parent 0907d87 commit 47facb8

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

test/accessibility/apps/discover.ts

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ import { FtrProviderContext } from '../ftr_provider_context';
2121

2222
export default function({ getService, getPageObjects }: FtrProviderContext) {
2323
const PageObjects = getPageObjects(['common', 'discover', 'header', 'share', 'timePicker']);
24+
const retry = getService('retry');
2425
const a11y = getService('a11y');
2526
const esArchiver = getService('esArchiver');
2627
const kibanaServer = getService('kibanaServer');
@@ -33,8 +34,7 @@ export default function({ getService, getPageObjects }: FtrProviderContext) {
3334
['geo.src', 'IN'],
3435
];
3536

36-
// FLAKY: https://github.com/elastic/kibana/issues/62497
37-
describe.skip('Discover', () => {
37+
describe('Discover', () => {
3838
before(async () => {
3939
await esArchiver.load('discover');
4040
await esArchiver.loadIfNeeded('logstash_functional');
@@ -133,7 +133,14 @@ export default function({ getService, getPageObjects }: FtrProviderContext) {
133133
// Context view test
134134
it('should open context view on a doc', async () => {
135135
await docTable.clickRowToggle();
136-
await (await docTable.getRowActions())[0].click();
136+
// click the open action
137+
await retry.try(async () => {
138+
const rowActions = await docTable.getRowActions();
139+
if (!rowActions.length) {
140+
throw new Error('row actions empty, trying again');
141+
}
142+
await rowActions[0].click();
143+
});
137144
await a11y.testAppSnapshot();
138145
});
139146

0 commit comments

Comments
 (0)