[Vega] Stabilize the vega custom expressions tests (#150293)

## Summary
Closes https://github.com/elastic/kibana/issues/150208

The problem is that it adds the filter badge twice. I think that it
doesn't remove the previous one so a new is added. I think that waiting
the chart to be rendered after the clearing of the filters will
stabilize it.

Runner 100 times

### Checklist

- [x] [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 2023-02-07 08:56:36 +02:00 committed by GitHub
parent 8f0d367ff6
commit 07b16a1193
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -224,6 +224,7 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) {
if (filtersCount > 0) {
await filterBar.removeAllFilters();
}
await PageObjects.visChart.waitForVisualizationRenderingStabilized();
});
const fillSpecAndGo = async (newSpec: string) => {