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
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
This commit is contained in:
@@ -30,6 +30,11 @@ from apps.lyric.models import User
|
||||
|
||||
class TrayTest(FunctionalTest):
|
||||
|
||||
def setUp(self):
|
||||
super().setUp()
|
||||
# Portrait viewport for T1–T5; 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
|
||||
|
||||
Reference in New Issue
Block a user