Skip to content

SigNoz is an open-source, OpenTelemetry-native observability platform for your team and their AI agents. Get logs, metrics, and traces in one tool with features like APM, distributed tracing, log management, infra monitoring, etc. Combined with SigNoz MCP and a native AI teammate (in SigNoz Cloud) it helps you build more resilient apps.

test(e2e): retry clicks swallowed by dnd-kit and loading antd buttons (#13401)

Vinicius Lourenço9d465d54f54d
diff --git a/tests/e2e/docs/flake-notes.md b/tests/e2e/docs/flake-notes.md
index d142230255..a30a8c90b4 100644
--- a/tests/e2e/docs/flake-notes.md
+++ b/tests/e2e/docs/flake-notes.md
@@ -259,3 +259,20 @@ neither antd 5.11 nor `@rc-component/trigger` closes it on Escape, so
it, but when the popover covered the Advanced Options header, that click waited
on "intercepts pointer events" for the rest of the budget. The driver now closes
the popover through its trigger and waits for it to go.
+
+## dnd-kit stops clicks right after a drop
+
+`app-shell/sidenav` TC-03 needed a retry in half its CI jobs and failed all
+three attempts in four of 22. dnd-kit 6.1 adds a capture-phase click handler on
+`document` that stops propagation once a drag activates, and removes it 50 ms
+after the drop. `saveShortcuts` clicked Save inside that window, so the modal
+stayed open and no preference request went out. It now clicks again while the
+dialog is still open.
+
+## The Kafka configuration button drops clicks while loading
+
+`messaging-queues/kafka` TC-01 failed its first attempt in four of 20 CI jobs.
+The health check button passes `loading` to an antd 5.11 `Button` while the
+three onboarding status queries fetch, and a loading antd button ignores clicks
+without being disabled, so Playwright clicks it and nothing opens.
+`openHealthCheck` clicks again until the dialog shows.
diff --git a/tests/e2e/drivers/messaging-queues.ts b/tests/e2e/drivers/messaging-queues.ts
index 4c2355fded..3353313814 100644
--- a/tests/e2e/drivers/messaging-queues.ts
+++ b/tests/e2e/drivers/messaging-queues.ts
@@ -258,9 +258,15 @@ export function messagingQueuesDriver(page: Page): MessagingQueues {
openHealthCheck: async () => {
// "Configuration", or "Missing Configuration (N)" when checks fail.
- await page.getByRole('button', { name: /Configuration/ }).click();
+ const button = page.getByRole('button', { name: /Configuration/ });
const dialog = page.getByRole('dialog');
- await expect(dialog).toBeVisible();
+ // The button drops clicks while its checks load, and is not disabled.
+ await expect(async () => {
+ if (!(await dialog.isVisible())) {
+ await button.click({ timeout: 5_000 });
+ }
+ await expect(dialog).toBeVisible({ timeout: 1_000 });
+ }).toPass();
return dialog;
},
diff --git a/tests/e2e/drivers/shell.ts b/tests/e2e/drivers/shell.ts
index e1a2b2d37e..e8c7a900c1 100644
--- a/tests/e2e/drivers/shell.ts
+++ b/tests/e2e/drivers/shell.ts
@@ -635,7 +635,16 @@ export function shellDriver(page: Page): Shell {
saveShortcuts: async () => {
const saved = page.waitForResponse(isPreferencePut('nav_shortcuts'));
- await page.getByTestId('save-changes-btn').click();
+ const dialog = page
+ .getByRole('dialog')
+ .filter({ hasText: 'Manage Shortcuts' });
+ // dnd-kit stops every click for 50 ms after a drop.
+ await expect(async () => {
+ if (await dialog.isVisible()) {
+ await page.getByTestId('save-changes-btn').click({ timeout: 5_000 });
+ }
+ await expect(dialog).toBeHidden({ timeout: 1_000 });
+ }).toPass();
const response = await saved;
expect(response.ok()).toBe(true);
return (response.request().postDataJSON() as { value: string[] }).value;