~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(mobile): update Library empty state baseline and improve tablet skipping
LearningCircuit752b76005b0a
diff --git a/tests/ui_tests/playwright/tests/mobile-components.spec.js b/tests/ui_tests/playwright/tests/mobile-components.spec.jsindex 151a79ceca..c4a005c3fd 100644--- a/tests/ui_tests/playwright/tests/mobile-components.spec.js+++ b/tests/ui_tests/playwright/tests/mobile-components.spec.js@@ -34,12 +34,19 @@ async function ensureSheetsClosed(page) {// ============================================test.describe('Mobile Navigation Components', () => {- test('Mobile nav - closed state', async ({ page, isMobile }) => {+ test('Mobile nav - closed state', async ({ page, isMobile, browserName }, testInfo) => {if (!isMobile) {test.skip();return;}+ // Skip on tablets (iPad) - they use sidebar navigation+ const isTablet = testInfo.project.name.includes('iPad');+ if (isTablet) {+ test.skip();+ return;+ }+await page.goto('/');await page.waitForLoadState('networkidle');await ensureSheetsClosed(page);@@ -51,12 +58,19 @@ test.describe('Mobile Navigation Components', () => {});});- test('Mobile nav - More menu open', async ({ page, isMobile }) => {+ test('Mobile nav - More menu open', async ({ page, isMobile }, testInfo) => {if (!isMobile) {test.skip();return;}+ // Skip on tablets (iPad) - they use sidebar navigation+ const isTablet = testInfo.project.name.includes('iPad');+ if (isTablet) {+ test.skip();+ return;+ }+await page.goto('/');await page.waitForLoadState('networkidle');await ensureSheetsClosed(page);@@ -82,12 +96,19 @@ test.describe('Mobile Navigation Components', () => {}});- test('Mobile nav items have correct sizing', async ({ page, isMobile }) => {+ test('Mobile nav items have correct sizing', async ({ page, isMobile }, testInfo) => {if (!isMobile) {test.skip();return;}+ // Skip on tablets (iPad) - they use sidebar navigation+ const isTablet = testInfo.project.name.includes('iPad');+ if (isTablet) {+ test.skip();+ return;+ }+await page.goto('/');await page.waitForLoadState('networkidle');@@ -369,19 +390,22 @@ test.describe('Interaction States', () => {await page.goto('/');await page.waitForLoadState('networkidle');- const toggle = page.locator('.ldr-advanced-options-toggle, [class*="advanced"]').first();- if (await toggle.isVisible()) {- // Ensure panel is collapsed- const panel = page.locator('.ldr-advanced-options-panel');- if (await panel.isVisible()) {- await toggle.click();- await page.waitForTimeout(300);- }+ const toggle = page.locator('.ldr-advanced-options-toggle').first();+ if ((await toggle.count()) === 0 || !(await toggle.isVisible())) {+ test.skip();+ return;+ }- await expect(toggle).toHaveScreenshot('advanced-options-collapsed.png', {- maxDiffPixelRatio: 0.02,- });+ // Ensure panel is collapsed+ const panel = page.locator('.ldr-advanced-options-panel');+ if (await panel.isVisible()) {+ await toggle.click();+ await page.waitForTimeout(300);}++ await expect(toggle).toHaveScreenshot('advanced-options-collapsed.png', {+ maxDiffPixelRatio: 0.02,+ });});test('Research - Advanced options expanded', async ({ page, isMobile }) => {@@ -393,21 +417,27 @@ test.describe('Interaction States', () => {await page.goto('/');await page.waitForLoadState('networkidle');- const toggle = page.locator('.ldr-advanced-options-toggle, [class*="advanced"]').first();- if (await toggle.isVisible()) {- // Expand the panel- const panel = page.locator('.ldr-advanced-options-panel');- if (!(await panel.isVisible())) {- await toggle.click();- await page.waitForTimeout(300);- }+ const toggle = page.locator('.ldr-advanced-options-toggle').first();+ if ((await toggle.count()) === 0 || !(await toggle.isVisible())) {+ test.skip();+ return;+ }- if (await panel.isVisible()) {- await expect(panel).toHaveScreenshot('advanced-options-expanded.png', {- maxDiffPixelRatio: 0.02,- });- }+ // Expand the panel+ const panel = page.locator('.ldr-advanced-options-panel');+ if (!(await panel.isVisible())) {+ await toggle.click();+ await page.waitForTimeout(300);}++ if (!(await panel.isVisible())) {+ test.skip();+ return;+ }++ await expect(panel).toHaveScreenshot('advanced-options-expanded.png', {+ maxDiffPixelRatio: 0.02,+ });});test('Settings tabs - Tab navigation', async ({ page, isMobile }) => {@@ -422,11 +452,14 @@ test.describe('Interaction States', () => {await page.waitForTimeout(500);const tabNav = page.locator('.ldr-settings-tabs, .ldr-tab-navigation, [role="tablist"]').first();- if (await tabNav.isVisible()) {- await expect(tabNav).toHaveScreenshot('settings-tab-navigation.png', {- maxDiffPixelRatio: 0.02,- });+ if ((await tabNav.count()) === 0 || !(await tabNav.isVisible())) {+ test.skip();+ return;}++ await expect(tabNav).toHaveScreenshot('settings-tab-navigation.png', {+ maxDiffPixelRatio: 0.02,+ });});test('Research textarea - with text entered', async ({ page, isMobile }) => {@@ -450,12 +483,19 @@ test.describe('Interaction States', () => {}});- test('Mobile nav - active state highlighting', async ({ page, isMobile }) => {+ test('Mobile nav - active state highlighting', async ({ page, isMobile }, testInfo) => {if (!isMobile) {test.skip();return;}+ // Skip on tablets (iPad) - they use sidebar navigation+ const isTablet = testInfo.project.name.includes('iPad');+ if (isTablet) {+ test.skip();+ return;+ }+// Navigate to different pages to see active stateconst pages = [{ path: '/', expected: 'Research' },