FTs.test_room_tray.TrayTest now contains setUp() helper to set default window size for methods which don't otherwise define a specific media query; several new Jasmine methods test drawer snap-to-close & wobble functionality
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed

This commit is contained in:
Disco DeDisco
2026-03-28 22:50:43 -04:00
parent c08b5b764e
commit de99b538d2
2 changed files with 33 additions and 2 deletions

View File

@@ -30,6 +30,11 @@ from apps.lyric.models import User
class TrayTest(FunctionalTest):
def setUp(self):
super().setUp()
# Portrait viewport for T1T5; landscape tests (T6, T7) override this.
self.browser.set_window_size(768, 1024)
def _simulate_drag(self, btn, offset_x):
"""Dispatch JS pointer events directly — more reliable than GeckoDriver drag."""
start_x = btn.rect['x'] + btn.rect['width'] / 2