From c2e66c09c8bc177fd43e497718479a19194f5e61 Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Sat, 14 Feb 2026 04:41:20 +0000 Subject: [PATCH] fix: update back and forward navigation test to use initial URL for accuracy --- tests/core/navigation.spec.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/core/navigation.spec.ts b/tests/core/navigation.spec.ts index 88a93c32..7b6c5202 100644 --- a/tests/core/navigation.spec.ts +++ b/tests/core/navigation.spec.ts @@ -393,13 +393,15 @@ test.describe('Navigation', () => { await page.goto('/'); await waitForLoadingComplete(page); + const initialUrl = page.url(); + await page.goto('/proxy-hosts'); await waitForLoadingComplete(page); await test.step('Go back then forward', async () => { await page.goBack(); await waitForLoadingComplete(page); - await expect(page).toHaveURL('/'); + await expect(page).toHaveURL(initialUrl); await page.goForward(); await waitForLoadingComplete(page);