[Console] Fix flaky autocomplete functional tests (#208322)

This commit is contained in:
Ignacio Rivas 2025-01-27 15:01:19 +01:00 committed by GitHub
parent ad84cce62c
commit 458704f475
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -34,8 +34,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
});
}
// Failing: See https://github.com/elastic/kibana/issues/156926
describe.skip('console autocomplete feature', function describeIndexTests() {
describe('console autocomplete feature', function describeIndexTests() {
before(async () => {
log.debug('navigateTo console');
await PageObjects.common.navigateToApp('console');
@ -53,7 +52,6 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
it('should provide basic auto-complete functionality', async () => {
await PageObjects.console.enterText(`GET _search\n`);
await PageObjects.console.pressEnter();
await PageObjects.console.enterText(`{\n\t"query": {`);
await PageObjects.console.pressEnter();
await PageObjects.console.sleepForDebouncePeriod();
@ -146,6 +144,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
it('JSON autocompletion with placeholder fields', async () => {
await PageObjects.console.enterText('GET _search\n');
await PageObjects.console.enterText('{');
await PageObjects.console.sleepForDebouncePeriod();
await PageObjects.console.pressEnter();
for (const char of '"ag') {