Skip to content

Commit

Permalink
[Discover] Improve and unskip a11y context view test (elastic#66959)
Browse files Browse the repository at this point in the history
  • Loading branch information
kertal committed May 20, 2020
1 parent 225c4c1 commit ea25111
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions test/accessibility/apps/discover.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ import { FtrProviderContext } from '../ftr_provider_context';

export default function({ getService, getPageObjects }: FtrProviderContext) {
const PageObjects = getPageObjects(['common', 'discover', 'header', 'share', 'timePicker']);
const retry = getService('retry');
const a11y = getService('a11y');
const esArchiver = getService('esArchiver');
const kibanaServer = getService('kibanaServer');
Expand All @@ -33,8 +34,7 @@ export default function({ getService, getPageObjects }: FtrProviderContext) {
['geo.src', 'IN'],
];

// FLAKY: https://github.com/elastic/kibana/issues/62497
describe.skip('Discover', () => {
describe('Discover', () => {
before(async () => {
await esArchiver.load('discover');
await esArchiver.loadIfNeeded('logstash_functional');
Expand Down Expand Up @@ -133,7 +133,14 @@ export default function({ getService, getPageObjects }: FtrProviderContext) {
// Context view test
it('should open context view on a doc', async () => {
await docTable.clickRowToggle();
await (await docTable.getRowActions())[0].click();
// click the open action
await retry.try(async () => {
const rowActions = await docTable.getRowActions();
if (!rowActions.length) {
throw new Error('row actions empty, trying again');
}
await rowActions[0].click();
});
await a11y.testAppSnapshot();
});

Expand Down

0 comments on commit ea25111

Please sign in to comment.