Skip to content

Commit

Permalink
[Discover] fix flaky test (elastic#184180)
Browse files Browse the repository at this point in the history
  • Loading branch information
drewdaemon authored May 29, 2024
1 parent 12f35c9 commit 58f1c67
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 3 additions & 1 deletion test/functional/page_objects/discover_page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -509,7 +509,9 @@ export class DiscoverPageObject extends FtrService {
}

public showsErrorCallout() {
return this.testSubjects.existOrFail('discoverErrorCalloutTitle');
this.retry.try(async () => {
await this.testSubjects.existOrFail('discoverErrorCalloutTitle');
});
}

public getDiscoverErrorMessage() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
defaultIndex: 'logstash-*',
};

// Failing: See https://github.com/elastic/kibana/issues/183493
describe.skip('discover esql view', async function () {
describe('discover esql view', async function () {
before(async () => {
await kibanaServer.savedObjects.cleanStandardList();
log.debug('load kibana index with default index pattern');
Expand Down

0 comments on commit 58f1c67

Please sign in to comment.