app: use replace for sidebar workspace switches

This commit is contained in:
Mohamed Boudra
2026-03-04 22:56:21 +07:00
parent 73fce89edd
commit 21b9743c61
3 changed files with 105 additions and 2 deletions
+1 -1
View File
@@ -367,7 +367,7 @@ export const createAgent = async (page: Page, message: string) => {
await input.press('Enter');
// Router updates can be same-document transitions; assert URL state instead of waiting for a commit event.
await expect(page).toHaveURL(/\/agent\//, { timeout: 30000 });
await expect(page).toHaveURL(/\/(workspace|agent)\//, { timeout: 30000 });
await expect(page.getByText(message, { exact: true }).first()).toBeVisible({
timeout: 30000,
});