From fb79ee908a8a261e6378fafb87bafee7ccb7b72f Mon Sep 17 00:00:00 2001 From: Shrinath Rao Date: Thu, 3 Sep 2026 11:46:54 +0000 Subject: [PATCH] test: retry dashboard create on transient 5xx (cross-worker folder race) (#14162) --- tests/ui-testing/pages/dashboardPages/dashboard-create.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/ui-testing/pages/dashboardPages/dashboard-create.js b/tests/ui-testing/pages/dashboardPages/dashboard-create.js index 4dc660c78b..c9225f72e8 100644 --- a/tests/ui-testing/pages/dashboardPages/dashboard-create.js +++ b/tests/ui-testing/pages/dashboardPages/dashboard-create.js @@ -281,6 +281,12 @@ export default class DashboardCreate { createRequest = await requestPromise; if (createRequest) { createResponse = await responsePromise; + // Fresh-org concurrent creates race server-side default-folder creation → the loser 500s on a unique-constraint; the folder now exists so a re-submit lands. Retry transient 5xx while attempts remain (nothing was created, so no duplicate); a persistent error still throws below. + if (createResponse && createResponse.status() >= 500 && attempt < submitAttempts) { + const stillOpen = await this.submitBtn.isVisible().catch(() => false); + if (!stillOpen) await this.openCreateDashboardDialog(); + continue; + } break; }