Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failing test: Chrome X-Pack UI Functional Tests.x-pack/test/functional/apps/lens/smokescreen·ts - lens app lens smokescreen tests should show value labels on bar charts when enabled #90907

Closed
kibanamachine opened this issue Feb 10, 2021 · 2 comments · Fixed by #93469
Assignees
Labels
failed-test A test failure on a tracked branch, potentially flaky-test Feature:Lens Team:Visualizations Visualization editors, elastic-charts and infrastructure

Comments

@kibanamachine
Copy link
Contributor

A test failed on a tracked branch

Error: expected [] to sort of not equal 0
    at Assertion.assert (/dev/shm/workspace/parallel/19/kibana/packages/kbn-expect/expect.js:100:11)
    at Assertion.eql (/dev/shm/workspace/parallel/19/kibana/packages/kbn-expect/expect.js:244:8)
    at Context.<anonymous> (test/functional/apps/lens/smokescreen.ts:242:45)
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (internal/process/task_queues.js:93:5)
    at Object.apply (/dev/shm/workspace/parallel/19/kibana/packages/kbn-test/src/functional_test_runner/lib/mocha/wrap_function.js:73:16) {
  actual: [],
  expected: 0,
  showDiff: true
}

First failure: Jenkins Build

@kibanamachine kibanamachine added the failed-test A test failure on a tracked branch, potentially flaky-test label Feb 10, 2021
@flash1293 flash1293 added the Team:Visualizations Visualization editors, elastic-charts and infrastructure label Mar 1, 2021
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-app (Team:KibanaApp)

@flash1293
Copy link
Contributor

flash1293 commented Mar 2, 2021

This only happened once in total so far - it's hard to tell what's going on because it's so rare. I would guess in some cases the DOM isn't updated yet. We are using waitUntilLoadingHasFinished to check whether loading is finished, but if the timing is bad, it's possible the next assertion is done before the DOM is updated. As it's not really possible to reliably determine this (there are a lot of async layers in our rendering pipeline), we could introduce a small wait time (maybe 500ms or something) after the loading indicator has disappeared and put it in a helper like lensPage.waitForVisualizationUpdate() which is used in all of the places waitUntilLoadingHasFinished is used directly right now.

Discussed offline and in visualize we have data-rendering-count and wait until it stops increasing. We can do the same logic in Lens.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
failed-test A test failure on a tracked branch, potentially flaky-test Feature:Lens Team:Visualizations Visualization editors, elastic-charts and infrastructure
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants