~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): add comprehensive page coverage for mobile UI tests
LearningCircuit4b2324a9bd17
diff --git a/tests/ui_tests/playwright/tests/mobile-components.spec.js b/tests/ui_tests/playwright/tests/mobile-components.spec.jsindex b43fb9449b..9db2c994bb 100644--- a/tests/ui_tests/playwright/tests/mobile-components.spec.js+++ b/tests/ui_tests/playwright/tests/mobile-components.spec.js@@ -1731,3 +1731,364 @@ test.describe('Download Manager Page', () => {}});});++// ============================================+// NEWS SUB-PAGES+// ============================================++test.describe('News Sub-Pages', () => {+ test('News insights page', async ({ page, isMobile }) => {+ if (!isMobile) {+ test.skip();+ return;+ }++ await page.goto('/news/insights');+ await page.waitForLoadState('domcontentloaded');+ await page.waitForTimeout(500);+ await ensureSheetsClosed(page);++ const pageContent = page.locator('main, .ldr-page, .ldr-insights');+ if (await pageContent.first().isVisible()) {+ await expect(page).toHaveScreenshot('news-insights-page.png', {+ fullPage: false,+ maxDiffPixelRatio: 0.02,+ });+ }+ });++ test('News preferences page', async ({ page, isMobile }) => {+ if (!isMobile) {+ test.skip();+ return;+ }++ await page.goto('/news/preferences');+ await page.waitForLoadState('domcontentloaded');+ await page.waitForTimeout(500);+ await ensureSheetsClosed(page);++ const pageContent = page.locator('main, .ldr-page, .ldr-preferences');+ if (await pageContent.first().isVisible()) {+ await expect(page).toHaveScreenshot('news-preferences-page.png', {+ fullPage: false,+ maxDiffPixelRatio: 0.02,+ });+ }+ });++ test('News subscriptions list page', async ({ page, isMobile }) => {+ if (!isMobile) {+ test.skip();+ return;+ }++ await page.goto('/news/subscriptions');+ await page.waitForLoadState('domcontentloaded');+ await page.waitForTimeout(500);+ await ensureSheetsClosed(page);++ const pageContent = page.locator('main, .ldr-page, .ldr-subscriptions');+ if (await pageContent.first().isVisible()) {+ await expect(page).toHaveScreenshot('news-subscriptions-list-page.png', {+ fullPage: false,+ maxDiffPixelRatio: 0.02,+ });+ }+ });++ test('News new subscription page', async ({ page, isMobile }) => {+ if (!isMobile) {+ test.skip();+ return;+ }++ await page.goto('/news/subscriptions/new');+ await page.waitForLoadState('domcontentloaded');+ await page.waitForTimeout(500);+ await ensureSheetsClosed(page);++ const pageContent = page.locator('main, .ldr-page, form');+ if (await pageContent.first().isVisible()) {+ await expect(page).toHaveScreenshot('news-new-subscription-page.png', {+ fullPage: false,+ maxDiffPixelRatio: 0.02,+ });+ }+ });+});++// ============================================+// METRICS SUB-PAGES+// ============================================++test.describe('Metrics Sub-Pages', () => {+ test('Context overflow page', async ({ page, isMobile }) => {+ if (!isMobile) {+ test.skip();+ return;+ }++ await page.goto('/metrics/context-overflow');+ await page.waitForLoadState('domcontentloaded');+ await page.waitForTimeout(500);+ await ensureSheetsClosed(page);++ const pageContent = page.locator('main, .ldr-page, .ldr-context-overflow');+ if (await pageContent.first().isVisible()) {+ await expect(page).toHaveScreenshot('metrics-context-overflow-page.png', {+ fullPage: false,+ maxDiffPixelRatio: 0.02,+ });+ }+ });++ test('Costs page', async ({ page, isMobile }) => {+ if (!isMobile) {+ test.skip();+ return;+ }++ await page.goto('/metrics/costs');+ await page.waitForLoadState('domcontentloaded');+ await page.waitForTimeout(500);+ await ensureSheetsClosed(page);++ const pageContent = page.locator('main, .ldr-page, .ldr-costs');+ if (await pageContent.first().isVisible()) {+ await expect(page).toHaveScreenshot('metrics-costs-page.png', {+ fullPage: false,+ maxDiffPixelRatio: 0.02,+ });+ }+ });+});++// ============================================+// AUTH CHANGE PASSWORD PAGE+// ============================================++test.describe('Auth Change Password', () => {+ test('Change password page layout', async ({ page, isMobile }) => {+ if (!isMobile) {+ test.skip();+ return;+ }++ await page.goto('/auth/change-password');+ await page.waitForLoadState('domcontentloaded');+ await page.waitForTimeout(500);++ const pageContent = page.locator('main, .ldr-page, form');+ if (await pageContent.first().isVisible()) {+ await expect(page).toHaveScreenshot('auth-change-password-page.png', {+ fullPage: false,+ maxDiffPixelRatio: 0.02,+ });+ }+ });+});++// ============================================+// SETTINGS SUB-PAGES+// ============================================++test.describe('Settings Sub-Pages', () => {+ test('Settings main page', async ({ page, isMobile }) => {+ if (!isMobile) {+ test.skip();+ return;+ }++ await page.goto('/settings/main');+ await page.waitForLoadState('domcontentloaded');+ await page.waitForTimeout(500);+ await page.waitForSelector('.ldr-loading-spinner', { state: 'hidden', timeout: 10000 }).catch(() => {});+ await page.waitForTimeout(500);+ await ensureSheetsClosed(page);++ const pageContent = page.locator('main, .ldr-page, .ldr-settings');+ if (await pageContent.first().isVisible()) {+ await expect(page).toHaveScreenshot('settings-main-page.png', {+ fullPage: false,+ maxDiffPixelRatio: 0.02,+ });+ }+ });++ test('Settings collections page', async ({ page, isMobile }) => {+ if (!isMobile) {+ test.skip();+ return;+ }++ await page.goto('/settings/collections');+ await page.waitForLoadState('domcontentloaded');+ await page.waitForTimeout(500);+ await page.waitForSelector('.ldr-loading-spinner', { state: 'hidden', timeout: 10000 }).catch(() => {});+ await page.waitForTimeout(500);+ await ensureSheetsClosed(page);++ const pageContent = page.locator('main, .ldr-page, .ldr-settings');+ if (await pageContent.first().isVisible()) {+ await expect(page).toHaveScreenshot('settings-collections-page.png', {+ fullPage: false,+ maxDiffPixelRatio: 0.02,+ });+ }+ });++ test('Settings API keys page', async ({ page, isMobile }) => {+ if (!isMobile) {+ test.skip();+ return;+ }++ await page.goto('/settings/api_keys');+ await page.waitForLoadState('domcontentloaded');+ await page.waitForTimeout(500);+ await page.waitForSelector('.ldr-loading-spinner', { state: 'hidden', timeout: 10000 }).catch(() => {});+ await page.waitForTimeout(500);+ await ensureSheetsClosed(page);++ const pageContent = page.locator('main, .ldr-page, .ldr-settings');+ if (await pageContent.first().isVisible()) {+ await expect(page).toHaveScreenshot('settings-api-keys-page.png', {+ fullPage: false,+ maxDiffPixelRatio: 0.02,+ });+ }+ });++ test('Settings search engines page', async ({ page, isMobile }) => {+ if (!isMobile) {+ test.skip();+ return;+ }++ await page.goto('/settings/search_engines');+ await page.waitForLoadState('domcontentloaded');+ await page.waitForTimeout(500);+ await page.waitForSelector('.ldr-loading-spinner', { state: 'hidden', timeout: 10000 }).catch(() => {});+ await page.waitForTimeout(500);+ await ensureSheetsClosed(page);++ const pageContent = page.locator('main, .ldr-page, .ldr-settings');+ if (await pageContent.first().isVisible()) {+ await expect(page).toHaveScreenshot('settings-search-engines-page.png', {+ fullPage: false,+ maxDiffPixelRatio: 0.02,+ });+ }+ });++ test('Settings LLM page', async ({ page, isMobile }) => {+ if (!isMobile) {+ test.skip();+ return;+ }++ await page.goto('/settings/llm');+ await page.waitForLoadState('domcontentloaded');+ await page.waitForTimeout(500);+ await page.waitForSelector('.ldr-loading-spinner', { state: 'hidden', timeout: 10000 }).catch(() => {});+ await page.waitForTimeout(500);+ await ensureSheetsClosed(page);++ const pageContent = page.locator('main, .ldr-page, .ldr-settings');+ if (await pageContent.first().isVisible()) {+ await expect(page).toHaveScreenshot('settings-llm-page.png', {+ fullPage: false,+ maxDiffPixelRatio: 0.02,+ });+ }+ });+});++// ============================================+// LIBRARY SUB-PAGES+// ============================================++test.describe('Library Sub-Pages', () => {+ test('Library download manager page', async ({ page, isMobile }) => {+ if (!isMobile) {+ test.skip();+ return;+ }++ await page.goto('/library/download-manager');+ await page.waitForLoadState('domcontentloaded');+ await page.waitForTimeout(500);+ await ensureSheetsClosed(page);++ const pageContent = page.locator('main, .ldr-page, .ldr-download-manager');+ if (await pageContent.first().isVisible()) {+ await expect(page).toHaveScreenshot('library-download-manager-page.png', {+ fullPage: false,+ maxDiffPixelRatio: 0.02,+ });+ }+ });++ test('Library embedding settings page', async ({ page, isMobile }) => {+ if (!isMobile) {+ test.skip();+ return;+ }++ await page.goto('/library/embedding-settings');+ await page.waitForLoadState('domcontentloaded');+ await page.waitForTimeout(500);+ await page.waitForSelector('.ldr-loading-spinner', { state: 'hidden', timeout: 10000 }).catch(() => {});+ await page.waitForTimeout(500);+ await ensureSheetsClosed(page);++ const pageContent = page.locator('main, .ldr-page, .ldr-embedding-settings');+ if (await pageContent.first().isVisible()) {+ await expect(page).toHaveScreenshot('library-embedding-settings-page.png', {+ fullPage: false,+ maxDiffPixelRatio: 0.02,+ });+ }+ });++ test('Library collections page', async ({ page, isMobile }) => {+ if (!isMobile) {+ test.skip();+ return;+ }++ await page.goto('/library/collections');+ await page.waitForLoadState('domcontentloaded');+ await page.waitForTimeout(500);+ await ensureSheetsClosed(page);++ const pageContent = page.locator('main, .ldr-page, .ldr-collections');+ if (await pageContent.first().isVisible()) {+ await expect(page).toHaveScreenshot('library-collections-page.png', {+ fullPage: false,+ maxDiffPixelRatio: 0.02,+ });+ }+ });++ test('Library create collection page', async ({ page, isMobile }) => {+ if (!isMobile) {+ test.skip();+ return;+ }++ await page.goto('/library/collections/create');+ await page.waitForLoadState('domcontentloaded');+ await page.waitForTimeout(500);+ await ensureSheetsClosed(page);++ const pageContent = page.locator('main, .ldr-page, form');+ if (await pageContent.first().isVisible()) {+ await expect(page).toHaveScreenshot('library-create-collection-page.png', {+ fullPage: false,+ maxDiffPixelRatio: 0.02,+ });+ }+ });+});