fix: improve login handling in navigation tests for consistent page state

This commit is contained in:
GitHub Actions
2026-02-14 05:22:58 +00:00
parent 9edc3f2bb0
commit 3a252096cd
+10
View File
@@ -19,6 +19,16 @@ test.describe('Navigation', () => {
test.beforeEach(async ({ page, adminUser }) => {
await loginUser(page, adminUser);
await waitForLoadingComplete(page);
await page.goto('/');
await waitForLoadingComplete(page);
if (page.url().includes('/login')) {
await loginUser(page, adminUser);
await waitForLoadingComplete(page);
await page.goto('/');
await waitForLoadingComplete(page);
}
});
test.describe('Main Menu Items', () => {