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(playwright): improve mode selection component test stability

LearningCircuit90a5c79c71a8
diff --git a/tests/ui_tests/playwright/tests/mobile-components.spec.js b/tests/ui_tests/playwright/tests/mobile-components.spec.js
index 18590a6002..4d5353c7fe 100644
--- a/tests/ui_tests/playwright/tests/mobile-components.spec.js
+++ b/tests/ui_tests/playwright/tests/mobile-components.spec.js
@@ -169,11 +169,15 @@ test.describe('Form Components', () => {
await page.goto('/');
await page.waitForLoadState('domcontentloaded');
await page.waitForTimeout(500);
+ await ensureSheetsClosed(page);
const modeSelection = page.locator('.ldr-mode-selection');
if (await modeSelection.count() > 0) {
+ await modeSelection.first().scrollIntoViewIfNeeded();
+ await page.waitForTimeout(300);
await expect(modeSelection.first()).toHaveScreenshot('mode-selection.png', {
maxDiffPixelRatio: 0.02,
+ timeout: 10000,
});
}
});