mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 09:19:04 -04:00
[Console] Refactor flaky test (#209516)
This commit is contained in:
parent
22a015bb46
commit
86497d5e7f
1 changed files with 6 additions and 8 deletions
|
@ -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, '')
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue