fix: update back and forward navigation test to use initial URL for accuracy

This commit is contained in:
GitHub Actions
2026-02-14 04:41:20 +00:00
parent 5e9bbf61c9
commit c2e66c09c8

View File

@@ -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);