From 411b7e4e4c23be05d13efcdaf437b4c77aa645b9 Mon Sep 17 00:00:00 2001 From: nmarrs Date: Tue, 9 Dec 2025 13:28:17 -0800 Subject: [PATCH] try and fix e2e test --- .../dashboards-suite/dashboard-share-internally.spec.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/e2e-playwright/dashboards-suite/dashboard-share-internally.spec.ts b/e2e-playwright/dashboards-suite/dashboard-share-internally.spec.ts index afb1787db3f..cd38bf3af79 100644 --- a/e2e-playwright/dashboards-suite/dashboard-share-internally.spec.ts +++ b/e2e-playwright/dashboards-suite/dashboard-share-internally.spec.ts @@ -188,7 +188,12 @@ test.describe( expect(shortUrl2).toContain('goto'); // Both short URLs should be the same (de-duplication) - expect(shortUrl1).toBe(shortUrl2); + // The backend normalizes timestamps for signature calculation, so even if timestamps + // differ slightly (due to the 1-2 second delay), they should produce the same signature + // and thus the same short URL. Use toPass() to handle potential timing variations. + await expect(async () => { + expect(shortUrl1).toBe(shortUrl2); + }).toPass({ timeout: 5000 }); }); test('Short URL de-duplication with unlocked time range', async ({ page, gotoDashboardPage, selectors }) => {