Skip to content

Fully autonomous AI Agents system capable of performing complex penetration testing tasks

fix(e2e): match the stand-smoke URL by pathname, not a string-built regex

Sergey Kozyrenko2d1e677e7529
diff --git a/frontend/e2e/specs/real/stand-smoke.spec.ts b/frontend/e2e/specs/real/stand-smoke.spec.ts
index 4196cdfa..68c7277d 100644
--- a/frontend/e2e/specs/real/stand-smoke.spec.ts
+++ b/frontend/e2e/specs/real/stand-smoke.spec.ts
@@ -15,7 +15,7 @@ test.describe('stand smoke', { tag: '@stand' }, () => {
await page.goto(route);
// Staying on the route (not bounced to /login) proves the reused
// session authenticated — no dependency on the stand's username.
- await expect(page).toHaveURL(new RegExp(route.replace(/\//g, '\\/')));
+ await expect(page).toHaveURL((url) => url.pathname === route);
await expect(page.getByRole('link', { name: 'Templates' })).toBeVisible();
expect(pageErrors, `uncaught errors on ${route}`).toEqual([]);
});