[Discover] Fix ES|QL extra fetches#237949
Conversation
|
🤖 Jobs for this PR can be triggered through checkboxes. 🚧
ℹ️ To trigger the CI, please tick the checkbox below 👇
|
Flaky Test Runner Stats🟠 Some tests failed. - kibana-flaky-test-suite-runner#9452[❌] src/platform/test/functional/apps/discover/group3/config.ts: 5/50 tests passed. |
💔 Build Failed
Failed CI StepsTest Failures
Metrics [docs]
Historycc @davismcphee |
|
FYI @davismcphee attempting to solve the extra fetching request count and because we chatted about this |
|
@kertal Oh that sounds promising. Especially considering any approach I've found for FTR is pretty hacky. @drewdaemon Could you share more info on how we could track in flight requests with Scout? |
|
@davismcphee I think you can do it via a CDPSession object which lets you use the Chrome Devtools Protocol directly test('request count', async ({ page, context }) => {
const cdp = await context.newCDPSession(page);
await cdp.send('Network.enable');
cdp.on('Network.requestWillBeSent', (event) => { // doc: https://chromedevtools.github.io/devtools-protocol/tot/Network/#event-requestWillBeSent
if (/* check event.request.url */) {
// count requests
}
});
// load page and wait for something relevant
// assert
});kudos to @dmlemeshko who pointed this out to me |
Summary
WIP.
Checklist
release_note:breakinglabel should be applied in these situations.release_note:*label is applied per the guidelinesbackport:*labels.