Skip to content

Commit

Permalink
[Console] Refactor flaky test (elastic#209516)
Browse files Browse the repository at this point in the history
  • Loading branch information
sabarasaba authored Feb 5, 2025
1 parent 22a015b commit 86497d5
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions test/functional/apps/console/_autocomplete.ts
Original file line number Diff line number Diff line change
Expand Up @@ -159,15 +159,13 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
await PageObjects.console.pressEnter();
await PageObjects.console.sleepForDebouncePeriod();

expect((await PageObjects.console.getEditorText()).replace(/\s/g, '')).to.be.eql(
// Verify that the autocomplete suggestion is inserted into the editor
expect((await PageObjects.console.getEditorText()).replace(/\s/g, '')).to.contain(
`
GET _search
{
"aggs": {
"NAME": {
"AGG_TYPE": {}
}
}
"aggs": {
"NAME": {
"AGG_TYPE": {}
}
}
`.replace(/\s/g, '')
);
Expand Down

0 comments on commit 86497d5

Please sign in to comment.