[BUG][Discover] Table rendering flakiness in integ tests #5495
Open
Description
Describe the bug
The discover table rendering seems to be flaky, and it causes some tests fail like below. The tests depend on 'docTable' (the discover table) to render correctly, however, it seems like the table fails to render so element [data-test-subj="docTable"]
is never found.
The tests all pass correctly locally, however, it is flaky on the CI.
1) discover app (CiGroup6)
nested query
"before all" hook for "should support querying on nested fields":
AssertionError: Timed out retrying after 60000ms: Expected to find element: `[data-test-subj="docTable"]`, but never found it.
Because this error occurred during a `before all` hook we are skipping the remaining tests in the current suite: `nested query`
at Context.eval (http://localhost:5601/__cypress/tests?p=cypress/support/index.js:461:13)
2) discover app (CiGroup6)
data-shared-item
should have correct data-shared-item title and description:
AssertionError: Timed out retrying after 60000ms: Expected to find element: `[data-test-subj="docTable"]`, but never found it.
at Context.eval (http://localhost:5601/__cypress/tests?p=cypress/support/index.js:[461](https://github.com/opensearch-project/OpenSearch-Dashboards/actions/runs/6855751194/job/18764087133#step:17:462):13)
3) doc link in discover (CiGroup7)
if value is null, add filter should create a non-exist filter:
AssertionError: Timed out retrying after 60000ms: Expected to find element: `[data-test-subj~="filter-negated"]`, but never found it.
at Context.eval (http://localhost:5601/__cypress/tests?p=cypress/integration/core-opensearch-dashboards/opensearch-dashboards/apps/data_explorer/doc_navigation.spec.js:150:50)