fix Failing test: Chrome UI Functional Tests.test/functional/apps/dashboard/group1/embeddable_rendering·ts (#149886)

Fixes https://github.com/elastic/kibana/issues/132865

flaky test runner
https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/1823

Failing tests did not provide anything useful in screen shot or debug
logs. PR adds more logging and scrolls to pie chart so if test continues
to be flaky, hopefully logs and screen shot can provide better data to
investigate

---------

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
This commit is contained in:
Nathan Reese 2023-02-02 14:36:20 -07:00 committed by GitHub
parent ace2c30c29
commit 2fb8620240
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -207,10 +207,13 @@ export class PieChartService extends FtrService {
}
async getSliceCountForAllPies() {
this.log.debug('PieChart.getSliceCountForAllPies');
let pieSlices = 0;
const charts =
(await this.visChart.getAllESChartsDebugDataByTestSubj(partitionVisChartSelector)) ?? [];
this.log.debug(`Found ${charts.length} charts`);
for (const chart of charts) {
await chart.moveMouseTo();
const visContainer = await chart.findByCssSelector('.echChartStatus');
const debugDataString: string | undefined = await visContainer.getAttribute(
'data-ech-debug-state'