~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.
Python academiaanthropicarxivbravedeep-researchencryptionhome-automationhomeserverlocallocal-deep-researchlocal-llmmistralollamaopenaipubmedresearchresearch-toolretrieval-augmented-generationsearxngself-hosted
test(playwright): fix undefined pageInfo references in mobile UI tests
LearningCircuit8767cb3bad9c
diff --git a/tests/ui_tests/playwright/tests/mobile-ui-issues.spec.js b/tests/ui_tests/playwright/tests/mobile-ui-issues.spec.jsindex d83a9a0efe..ee55ace06a 100644--- a/tests/ui_tests/playwright/tests/mobile-ui-issues.spec.js+++ b/tests/ui_tests/playwright/tests/mobile-ui-issues.spec.js@@ -122,7 +122,7 @@ test.describe('Mobile - Form Elements', () => {}await page.goto('/');- await waitForPageLoad(page, pageInfo);+ await waitForPageLoad(page, '/');const textarea = page.locator('#query, textarea[name="query"], .ldr-research-textarea');if (await textarea.count() > 0) {@@ -158,7 +158,7 @@ test.describe('Mobile - Form Elements', () => {}await page.goto('/settings/');- await waitForPageLoad(page, pageInfo);+ await waitForPageLoad(page, '/settings/');// Wait for settings to loadawait page.waitForSelector('.ldr-loading-spinner', { state: 'hidden', timeout: 10000 }).catch(() => {});@@ -195,7 +195,7 @@ test.describe('Mobile - Form Elements', () => {}await page.goto('/news/');- await waitForPageLoad(page, pageInfo);+ await waitForPageLoad(page, '/news/');const searchInput = page.locator('input[type="search"], input[placeholder*="Search"], .ldr-search-input');if (await searchInput.count() > 0) {@@ -211,7 +211,7 @@ test.describe('Mobile - Form Elements', () => {}await page.goto('/library/');- await waitForPageLoad(page, pageInfo);+ await waitForPageLoad(page, '/library/');const searchInput = page.locator('input[type="search"], input[placeholder*="Search"], .ldr-search-input');if (await searchInput.count() > 0) {@@ -294,7 +294,7 @@ test.describe('Mobile - Card Layouts', () => {}await page.goto('/settings/');- await waitForPageLoad(page, pageInfo);+ await waitForPageLoad(page, '/settings/');const cards = page.locator('.ldr-card, .card, [class*="card"]');const count = await cards.count();@@ -321,7 +321,7 @@ test.describe('Mobile - Card Layouts', () => {}await page.goto('/metrics/');- await waitForPageLoad(page, pageInfo);+ await waitForPageLoad(page, '/metrics/');// Only target actual card containers, not elements that happen to have "metric" in their classconst metricCards = page.locator('.ldr-metric-card, .ldr-stat-card, .ldr-metric-link');@@ -352,7 +352,7 @@ test.describe('Mobile - Card Layouts', () => {}await page.goto('/library/');- await waitForPageLoad(page, pageInfo);+ await waitForPageLoad(page, '/library/');const docCards = page.locator('.document-card, .ldr-document-card, [class*="document"]');const count = await docCards.count();@@ -382,7 +382,7 @@ test.describe('Mobile - Dropdowns', () => {}await page.goto('/');- await waitForPageLoad(page, pageInfo);+ await waitForPageLoad(page, '/');// Find mode selection dropdown/buttonsconst modeSelection = page.locator('.ldr-mode-selection, [class*="mode-select"]');@@ -406,7 +406,7 @@ test.describe('Mobile - Dropdowns', () => {}await page.goto('/settings/');- await waitForPageLoad(page, pageInfo);+ await waitForPageLoad(page, '/settings/');await page.waitForSelector('.ldr-loading-spinner', { state: 'hidden', timeout: 10000 }).catch(() => {});const dropdowns = page.locator('select, .ldr-dropdown, [class*="dropdown"]');@@ -515,7 +515,7 @@ test.describe('Mobile - Loading States', () => {}// Content should eventually be visible- await waitForPageLoad(page, pageInfo);+ await waitForPageLoad(page, '/settings/');});test('Metrics page - Shows loading state for data', async ({ page, isMobile }) => {@@ -525,7 +525,7 @@ test.describe('Mobile - Loading States', () => {}await page.goto('/metrics/');- await waitForPageLoad(page, pageInfo);+ await waitForPageLoad(page, '/metrics/');// Check that metrics content is visible (not stuck in loading)const metricsContent = page.locator('.ldr-metrics-content, #metrics-content, [class*="metrics"]');@@ -547,7 +547,7 @@ test.describe('Mobile - Scroll Behavior', () => {}await page.goto('/metrics/');- await waitForPageLoad(page, pageInfo);+ await waitForPageLoad(page, '/metrics/');// Wait for metrics content to loadawait page.waitForTimeout(1000);@@ -634,7 +634,7 @@ test.describe('Mobile - Navigation Interactions', () => {}await page.goto('/');- await waitForPageLoad(page, pageInfo);+ await waitForPageLoad(page, '/');const navItems = page.locator('.ldr-mobile-bottom-nav a, .ldr-mobile-bottom-nav button');const count = await navItems.count();@@ -665,7 +665,7 @@ test.describe('Mobile - Navigation Interactions', () => {}await page.goto('/settings/');- await waitForPageLoad(page, pageInfo);+ await waitForPageLoad(page, '/settings/');// Find and tap Research nav itemconst researchNav = page.locator('.ldr-mobile-bottom-nav').getByText('Research');@@ -690,7 +690,7 @@ test.describe('Mobile - Navigation Interactions', () => {}await page.goto('/');- await waitForPageLoad(page, pageInfo);+ await waitForPageLoad(page, '/');// Find and tap History nav itemconst historyNav = page.locator('.ldr-mobile-bottom-nav').getByText('History');@@ -714,7 +714,7 @@ test.describe('Mobile - Research Page Elements', () => {}await page.goto('/');- await waitForPageLoad(page, pageInfo);+ await waitForPageLoad(page, '/');const startButton = page.locator('#start-research-btn, button:has-text("Start Research")');if (await startButton.count() > 0) {@@ -737,7 +737,7 @@ test.describe('Mobile - Research Page Elements', () => {}await page.goto('/');- await waitForPageLoad(page, pageInfo);+ await waitForPageLoad(page, '/');const toggle = page.locator('.ldr-advanced-options-toggle, [class*="advanced"]');const panel = page.locator('.ldr-advanced-options-panel');@@ -769,7 +769,7 @@ test.describe('Mobile - Library Page Elements', () => {}await page.goto('/library/');- await waitForPageLoad(page, pageInfo);+ await waitForPageLoad(page, '/library/');const actionButtons = page.locator('button').filter({hasText: /Sync|Get All|Text Only|Download/i,@@ -794,7 +794,7 @@ test.describe('Mobile - News Page Elements', () => {}await page.goto('/news/');- await waitForPageLoad(page, pageInfo);+ await waitForPageLoad(page, '/news/');const createButton = page.locator('button, a').filter({hasText: /Create.*Subscription/i,@@ -814,7 +814,7 @@ test.describe('Mobile - News Page Elements', () => {}await page.goto('/news/');- await waitForPageLoad(page, pageInfo);+ await waitForPageLoad(page, '/news/');const templates = page.locator('[class*="template"], button:has-text("News")');const count = await templates.count();@@ -843,7 +843,7 @@ test.describe('Mobile - Modal Focus Trap', () => {}await page.goto('/news/');- await waitForPageLoad(page, pageInfo);+ await waitForPageLoad(page, '/news/');const createBtn = page.locator('#create-subscription-btn');if (await createBtn.isVisible()) {