[Console] Refactor flaky test (#209516)

This commit is contained in:
Ignacio Rivas 2025-02-05 11:28:46 +01:00 committed by GitHub
parent 22a015bb46
commit 86497d5e7f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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, '')
);