[ES|QL] Small changes to help potential flakiness (#216982)

## Summary

Closes https://github.com/elastic/kibana/issues/216398

Another small change to ensure flakiness. 100 times run

### Checklist
- [ ] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios
This commit is contained in:
Stratoula Kalafateli 2025-04-03 16:00:32 +02:00 committed by GitHub
parent 8cf8c7efa9
commit eaf467f53c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -14,7 +14,12 @@ import { FtrProviderContext } from '../../../ftr_provider_context';
export default function ({ getService, getPageObjects }: FtrProviderContext) {
const retry = getService('retry');
const kibanaServer = getService('kibanaServer');
const { dashboard, timePicker, common } = getPageObjects(['dashboard', 'timePicker', 'common']);
const { dashboard, timePicker, common, header } = getPageObjects([
'dashboard',
'timePicker',
'common',
'header',
]);
const testSubjects = getService('testSubjects');
const esql = getService('esql');
const dashboardAddPanel = getService('dashboardAddPanel');
@ -85,6 +90,11 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
// Check Lens editor has been updated accordingly
const editorValue = await esql.getEsqlEditorQuery();
expect(editorValue).to.contain('FROM logstash* | STATS COUNT(*) BY ??field');
// run the query to make sure the chart is updated
await testSubjects.click('ESQLEditor-run-query-button');
await dashboard.waitForRenderComplete();
await header.waitUntilLoadingHasFinished();
});
it('should update the Lens chart accordingly', async () => {