You've already forked MicroPythonOS
mirror of
https://github.com/m5stack/MicroPythonOS.git
synced 2026-05-20 11:51:27 -07:00
Attempt to fix q button test on macOS
This commit is contained in:
@@ -72,7 +72,7 @@ class TestKeyboardQButton(unittest.TestCase):
|
||||
keyboard = MposKeyboard(self.screen)
|
||||
keyboard.set_textarea(textarea)
|
||||
keyboard.align(lv.ALIGN.BOTTOM_MID, 0, 0)
|
||||
wait_for_render(10)
|
||||
wait_for_render(20) # increased from 10 to 20 because on macOS this didnt work
|
||||
|
||||
print(f"Initial textarea: '{textarea.get_text()}'")
|
||||
self.assertEqual(textarea.get_text(), "", "Textarea should start empty")
|
||||
@@ -90,7 +90,7 @@ class TestKeyboardQButton(unittest.TestCase):
|
||||
# Click the 'q' button
|
||||
print(f"Clicking 'q' button at ({q_coords['center_x']}, {q_coords['center_y']})")
|
||||
simulate_click(q_coords['center_x'], q_coords['center_y'])
|
||||
wait_for_render(10)
|
||||
wait_for_render(20) # increased from 10 to 20 because on macOS this didnt work
|
||||
|
||||
# Check textarea content
|
||||
text_after_q = textarea.get_text()
|
||||
|
||||
Reference in New Issue
Block a user