From 99a826f6c9c1a358cf5977cff629e4a91aec13cd Mon Sep 17 00:00:00 2001 From: Disco DeDisco Date: Tue, 7 Apr 2026 01:26:35 -0400 Subject: [PATCH] =?UTF-8?q?FT:=20pin=20AppletMenuDismissTest=20to=20portra?= =?UTF-8?q?it=20viewport=20(800=C3=971200)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Landscape layout activates sidebar CSS which causes #id_dash_content to overlap the base-template h2 in CI headless Firefox, triggering ElementClickInterceptedException. Portrait viewport sidesteps all landscape breakpoints so the h2 sits safely above #id_dash_content. Co-Authored-By: Claude Sonnet 4.6 --- src/functional_tests/test_dashboard.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/functional_tests/test_dashboard.py b/src/functional_tests/test_dashboard.py index c6564aa..94827be 100644 --- a/src/functional_tests/test_dashboard.py +++ b/src/functional_tests/test_dashboard.py @@ -119,6 +119,9 @@ class DashboardMaintenanceTest(FunctionalTest): class AppletMenuDismissTest(FunctionalTest): def setUp(self): super().setUp() + # Portrait viewport: sidebars don't activate, h2 sits safely above + # #id_dash_content and can't be obscured by it regardless of font metrics. + self.browser.set_window_size(800, 1200) Applet.objects.get_or_create(slug="username", defaults={"name": "Username"}) Applet.objects.get_or_create(slug="palette", defaults={"name": "Palette"}) self.create_pre_authenticated_session("discoman@example.com")