[Discover] Improve a11y test when switching to context (#67363)

This commit is contained in:
Matthias Wilhelm 2020-05-29 06:33:17 +02:00 committed by GitHub
parent e28028b36c
commit b9d1cec7fd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -34,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');
@ -133,9 +132,9 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
// Context view test
it('should open context view on a doc', async () => {
await docTable.clickRowToggle();
// click the open action
await retry.try(async () => {
await docTable.clickRowToggle();
// click the open action
const rowActions = await docTable.getRowActions();
if (!rowActions.length) {
throw new Error('row actions empty, trying again');