This commit is contained in:
@@ -166,9 +166,11 @@ class TestTOCOverlay(unittest.TestCase):
|
||||
self.skipTest("Need at least 2 chapters for this test")
|
||||
|
||||
# Calculate tap position for second chapter (index 1 - "Metamorphosis")
|
||||
# Based on actual measurements: chapter 1 link is at screen Y=282, X=200-300
|
||||
# Based on actual measurements from pyWebLayout query_point:
|
||||
# Overlay bounds: (38, 138, 122, 16) -> X=[38,160], Y=[138,154]
|
||||
# With panel offset (160, 180): Screen X=[198,320], Y=[318,334]
|
||||
tap_x = 250 # Within the link text bounds
|
||||
tap_y = 282 # Chapter 1 "Metamorphosis"
|
||||
tap_y = 335 # Chapter 1 "Metamorphosis" at overlay Y=155 (138+16=154, screen 180+155=335)
|
||||
|
||||
event = TouchEvent(
|
||||
gesture=GestureType.TAP,
|
||||
|
||||
Reference in New Issue
Block a user