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.

test(playwright): fix sheet visibility in iPad screenshots and add baselines

LearningCircuitd0830a4de759
diff --git a/.gitignore b/.gitignore
index d0771ac03e..78a86d6392 100644
--- a/.gitignore
+++ b/.gitignore
@@ -270,3 +270,12 @@ tests/**/*.md
!tests/ui_tests/playwright/playwright.config.js
!tests/ui_tests/playwright/tests/
!tests/ui_tests/playwright/tests/*.js
+!tests/ui_tests/playwright/tests/helpers/
+!tests/ui_tests/playwright/tests/helpers/*.js
+# Whitelist Playwright snapshot baselines (visual regression reference images)
+!tests/ui_tests/playwright/tests/*.spec.js-snapshots/
+!tests/ui_tests/playwright/tests/*.spec.js-snapshots/*.png
+
+# Block Playwright generated reports and test artifacts
+tests/ui_tests/playwright/playwright-report/
+tests/ui_tests/playwright/test-results/
diff --git a/tests/ui_tests/playwright/tests/helpers/mobile-utils.js b/tests/ui_tests/playwright/tests/helpers/mobile-utils.js
index 3390a5c8ea..451fe4b789 100644
--- a/tests/ui_tests/playwright/tests/helpers/mobile-utils.js
+++ b/tests/ui_tests/playwright/tests/helpers/mobile-utils.js
@@ -50,20 +50,28 @@ const PAGES = [
async function ensureSheetsClosed(page) {
// Remove sheet elements from DOM
await page.evaluate(() => {
+ // Remove ALL sheet-related elements (use broader selectors)
const selectors = [
'.ldr-mobile-sheet-menu',
'.ldr-mobile-sheet-overlay',
- '.ldr-mobile-sheet'
+ '.ldr-mobile-sheet',
+ '.ldr-mobile-bottom-nav', // Also hide mobile nav on tablets
+ '[class*="sheet"]:not([class*="stylesheet"])',
+ '[class*="drawer"]',
+ '[role="dialog"]:not(.ldr-mode-selection)'
];
selectors.forEach(selector => {
- document.querySelectorAll(selector).forEach(el => el.remove());
+ document.querySelectorAll(selector).forEach(el => {
+ el.remove();
+ });
});
// Clear MobileNavigation references
if (window.mobileNav && window.mobileNav.elements) {
window.mobileNav.elements.sheet = null;
window.mobileNav.elements.overlay = null;
+ window.mobileNav.elements.nav = null;
}
});