Skip to content

~95% on SimpleQA (e.g. Qwen3.6-27B on a 3090). Supports all local and cloud LLMs (llama.cpp, Ollama, Google, ...). 10+ search engines - arXiv, PubMed, your private documents. Everything Local & Encrypted.

fix: resolve WebKit Safari auth navigation test failure (#2434)

LearningCircuitcaeb47f69564
diff --git a/tests/ui_tests/playwright/tests/auth-pages-mobile.spec.js b/tests/ui_tests/playwright/tests/auth-pages-mobile.spec.js
index 398ce403dd..e4290c4212 100644
--- a/tests/ui_tests/playwright/tests/auth-pages-mobile.spec.js
+++ b/tests/ui_tests/playwright/tests/auth-pages-mobile.spec.js
@@ -298,10 +298,15 @@ test.describe('Auth Pages Mobile', () => {
await page.goto('/auth/register');
await page.waitForLoadState('domcontentloaded');
- const loginLink = page.locator('a[href*="login"]');
+ // Use specific selector to target the link in the auth-links section.
+ // The register page is tall (many form fields) inside a flex-centered
+ // body. In WebKit, Playwright's coordinated scroll-then-click can fail
+ // to trigger navigation, so we dispatch a DOM-level click instead.
+ const loginLink = page.locator('.ldr-auth-links a[href*="login"]');
await expect(loginLink).toBeVisible();
- await loginLink.click();
- await page.waitForURL('**/auth/login', { timeout: 15000 });
+ await loginLink.scrollIntoViewIfNeeded();
+ await loginLink.evaluate(node => node.click());
+ await page.waitForURL('**/auth/login**', { timeout: 15000 });
expect(page.url()).toContain('/auth/login');
});