mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 01:38:56 -04:00
[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:
parent
8cf8c7efa9
commit
eaf467f53c
1 changed files with 11 additions and 1 deletions
|
@ -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 () => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue