mirror of
https://github.com/openobserve/openobserve.git
synced 2026-11-04 16:09:05 +00:00
test(e2e): don't wait for streamed search responses to finish (#15735)
This commit is contained in:
@@ -338,7 +338,11 @@ export default class DashboardactionPage {
|
||||
{ timeout: 30000 }
|
||||
);
|
||||
await this.applyDashboardBtn();
|
||||
await (await promqlResponse).finished();
|
||||
const response = await promqlResponse;
|
||||
// A streamed (text/event-stream) response never reports finished; waitForChartToRender covers completion.
|
||||
if (!(await response.headerValue("content-type"))?.includes("text/event-stream")) {
|
||||
await response.finished();
|
||||
}
|
||||
await this.waitForChartToRender();
|
||||
}
|
||||
|
||||
|
||||
@@ -13382,7 +13382,10 @@ export class LogsPage {
|
||||
),
|
||||
this.page.locator(this.searchBarRefreshButton).click(),
|
||||
]);
|
||||
await response.finished();
|
||||
// A streamed (text/event-stream) response never reports finished; the Run button wait covers completion.
|
||||
if (!(await response.headerValue('content-type'))?.includes('text/event-stream')) {
|
||||
await response.finished();
|
||||
}
|
||||
await this.waitForRunQueryButton(timeout);
|
||||
await expect(this.resultsTable()).toBeVisible({ timeout });
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user