File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2828 wait_for_focus ,
2929)
3030from mpos .ui import focus_direction
31- from mpos .ui .testing import wait_for_render
31+ from mpos .ui .testing import find_dropdown_widget , wait_for_widget
3232
3333
3434# ---------------------------------------------------------------------------
@@ -83,7 +83,11 @@ class TestAppStoreFocus(unittest.TestCase):
8383 def setUp (self ):
8484 result = AppManager .start_app ("com.micropythonos.appstore" )
8585 self .assertTrue (result , "AppStore failed to launch" )
86- wait_for_render (40 )
86+ dropdown = wait_for_widget (
87+ lambda : find_dropdown_widget (lv .screen_active ()),
88+ timeout = 10 ,
89+ )
90+ self .assertIsNotNone (dropdown , "AppStore category dropdown never appeared" )
8791 activity = _get_appstore_activity ()
8892 self .assertIsNotNone (activity , "Could not get AppStore activity instance" )
8993 _inject_fake_apps (activity )
You can’t perform that action at this time.
0 commit comments