Skip to content

Commit

Permalink
Deflakyfy
Browse files Browse the repository at this point in the history
  • Loading branch information
kertal committed Oct 10, 2023
1 parent 321d7d2 commit 46a6ba1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/examples/search/warnings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,15 +118,15 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
await openShardModalButton.click();

// request
await testSubjects.click('inspectorRequestDetailRequest');
await retry.try(async () => {
await testSubjects.click('inspectorRequestDetailRequest');
const requestText = await monacoEditor.getCodeEditorValue(0);
expect(requestText).to.contain(testRollupField);
});

// response
await testSubjects.click('inspectorRequestDetailResponse');
await retry.try(async () => {
await testSubjects.click('inspectorRequestDetailResponse');
const responseText = await monacoEditor.getCodeEditorValue(0);
expect(responseText).to.contain(shardFailureReason);
});
Expand Down

0 comments on commit 46a6ba1

Please sign in to comment.