This is an automated email from the ASF dual-hosted git repository.
FrankChen021 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/druid.git
The following commit(s) were added to refs/heads/master by this push:
new 0ad366d5d4a test(web-console): handle available capacity warning in
MSQ e2e (#20443)
0ad366d5d4a is described below
commit 0ad366d5d4a2bf3b1d35dd7f515c2302c5731e7e
Author: Edmond Abraham <[email protected]>
AuthorDate: Wed Sep 30 03:17:43 2026 -0400
test(web-console): handle available capacity warning in MSQ e2e (#20443)
Added handling for capacity alert in query execution.
---
web-console/e2e-tests/component/workbench/overview.ts | 14 +++++++++++++-
1 file changed, 13 insertions(+), 1 deletion(-)
diff --git a/web-console/e2e-tests/component/workbench/overview.ts
b/web-console/e2e-tests/component/workbench/overview.ts
index b33e57fbc79..63e86dbd2cd 100644
--- a/web-console/e2e-tests/component/workbench/overview.ts
+++ b/web-console/e2e-tests/component/workbench/overview.ts
@@ -40,7 +40,19 @@ export class WorkbenchOverview {
const input = await this.page.waitForSelector('div.flexible-query-input
textarea');
await input.fill(query);
await clickButton(this.page, 'Run');
- await this.page.waitForSelector('div.result-table-pane', { timeout: 4 * 60
* 1000 });
+
+ const results = this.page.locator('div.result-table-pane');
+ const capacityAlert = this.page.locator('.alert-dialog').filter({
+ hasText: 'The cluster does not currently have enough available task
slots',
+ });
+ const first = await Promise.race([
+ results.waitFor({ timeout: 4 * 60 * 1000 }).then(() => 'results'),
+ capacityAlert.waitFor({ timeout: 4 * 60 * 1000 }).then(() =>
'capacityAlert'),
+ ]);
+ if (first === 'capacityAlert') {
+ await capacityAlert.getByRole('button', { name: 'Run it anyway'
}).click();
+ await results.waitFor({ timeout: 4 * 60 * 1000 });
+ }
return await extractTable(this.page, 'div.result-table-pane
div.rt-tr-group', 'div.rt-td');
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]