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: Disable screenshots in CI to prevent timeout errors

LearningCircuitea31087e93a0
diff --git a/tests/ui_tests/mobile/test_mobile_navigation_ci.js b/tests/ui_tests/mobile/test_mobile_navigation_ci.js
index 25f5e5cca7..c9334b5bd0 100644
--- a/tests/ui_tests/mobile/test_mobile_navigation_ci.js
+++ b/tests/ui_tests/mobile/test_mobile_navigation_ci.js
@@ -14,7 +14,7 @@ const TEST_CONFIG = {
baseUrl: process.env.TEST_BASE_URL || 'http://127.0.0.1:5000',
headless: process.env.HEADLESS !== 'false',
timeout: 30000,
- screenshotOnFailure: process.env.SCREENSHOT_ON_FAILURE !== 'false',
+ screenshotOnFailure: process.env.CI ? false : (process.env.SCREENSHOT_ON_FAILURE !== 'false'), // Disable screenshots in CI
outputFormat: process.env.OUTPUT_FORMAT || 'json', // json, junit, console
};
@@ -295,10 +295,19 @@ class MobileNavTestRunner {
test.details = error.stack;
if (TEST_CONFIG.screenshotOnFailure && context.page) {
- const screenshotPath = `./test-failures/${context.device}_${testName.replace(/\s+/g, '_')}.png`;
- await fs.mkdir('./test-failures', { recursive: true });
- await context.page.screenshot({ path: screenshotPath });
- test.screenshot = screenshotPath;
+ try {
+ const screenshotPath = `./test-failures/${context.device}_${testName.replace(/\s+/g, '_')}.png`;
+ await fs.mkdir('./test-failures', { recursive: true });
+ // Add timeout to screenshot to prevent hanging
+ await context.page.screenshot({
+ path: screenshotPath,
+ timeout: 5000 // 5 second timeout for screenshot
+ });
+ test.screenshot = screenshotPath;
+ } catch (screenshotError) {
+ console.error(`Warning: Failed to capture screenshot: ${screenshotError.message}`);
+ // Don't fail the test because of screenshot failure
+ }
}
console.error(` ❌ ${testName}: ${error.message}`);