[Discover] Stop hiding doc viewer when refreshing in ES|QL mode#253510
[Discover] Stop hiding doc viewer when refreshing in ES|QL mode#253510davismcphee merged 5 commits intoelastic:mainfrom
Conversation
| spaceTest('should render grid with WHERE filter', async ({ pageObjects }) => { | ||
| await pageObjects.metricsExperience.runEsqlQuery( | ||
| `${testData.ESQL_QUERIES.TS_TSDB_LOGS} | WHERE @timestamp > NOW() - 1 DAY` | ||
| `${testData.ESQL_QUERIES.TS_TSDB_LOGS} | WHERE @timestamp > "${testData.TSDB_LOGS_DEFAULT_END_TIME}" - 100 DAYS` |
There was a problem hiding this comment.
This test wasn't actually working as expected. The previous WHERE condition returned no results, but runEsqlQuery didn't wait on the fetch to complete, so it passed with the previous results. Now it actually waits for the fetch to complete, so we need valid results.
There was a problem hiding this comment.
@lucaslopezf I think you worked on this, so I’m pinging you in case you’d like to review it.
There was a problem hiding this comment.
For a bit of additional context, this test as it was previously written would fail if a short delay was added after this line, e.g. await new Promise((resolve) => setTimeout(resolve, 5000)).
|
Pinging @elastic/kibana-data-discovery (Team:DataDiscovery) |
|
/flaky scoutConfig:x-pack/platform/plugins/private/discover_enhanced/test/scout/ui/parallel.playwright.config.ts:20 |
Flaky Test Runner✅ Build triggered - kibana-flaky-test-suite-runner#10779
|
Flaky Test Runner Stats🎉 All tests passed! - kibana-flaky-test-suite-runner#10779[✅] x-pack/platform/plugins/private/discover_enhanced/test/scout/ui/parallel.playwright.config.ts: 20/20 tests passed. |
@dmlemeshko what is this magic? 😄 Can I do this on any of my PRs to run flaky scout configs? |
💛 Build succeeded, but was flaky
Failed CI StepsTest Failures
Metrics [docs]Async chunks
History
cc @davismcphee |
it is
|
💚 Build Succeeded
Metrics [docs]Async chunks
History
cc @davismcphee |
Summary
refresh.mp4
Resolves #191885.
Checklist
release_note:breakinglabel should be applied in these situations.release_note:*label is applied per the guidelinesbackport:*labels.