Skip to content

Commit e3da3c0

Browse files
Fix test
1 parent 5785bc5 commit e3da3c0

2 files changed

Lines changed: 11 additions & 8 deletions

File tree

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ Future release (next version)
33

44
Add changes that have been made to the code but haven't made it into a release here.
55

6+
Frameworks:
7+
- AppManager: support .mpk/.zip files with compression and an unnecessary top-level directory
8+
69
0.9.2
710
=====
811

tests/test_graphical_hotspot_then_station.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ def tearDown(self):
6969

7070
try:
7171
mpos.ui.back_screen()
72-
wait_for_render(5)
72+
wait_for_render(25)
7373
except Exception:
7474
pass
7575

@@ -78,11 +78,11 @@ def test_hotspot_start_button_enables_hotspot(self):
7878
print("\n=== Starting hotspot start-flow test ===")
7979

8080
WifiService.disable_hotspot()
81-
wait_for_render(5)
81+
wait_for_render(25)
8282

8383
result = AppManager.start_app("com.micropythonos.settings.hotspot")
8484
self.assertTrue(result, "Failed to start hotspot settings app")
85-
wait_for_render(iterations=20)
85+
wait_for_render(iterations=25)
8686

8787
screen = lv.screen_active()
8888
print("\nHotspot screen labels:")
@@ -99,7 +99,7 @@ def test_hotspot_start_button_enables_hotspot(self):
9999
click_button("Start"),
100100
"Could not find Start button in hotspot app",
101101
)
102-
wait_for_render(iterations=20)
102+
wait_for_render(iterations=25)
103103

104104
self.assertTrue(
105105
WifiService.is_hotspot_enabled(),
@@ -108,15 +108,15 @@ def test_hotspot_start_button_enables_hotspot(self):
108108

109109
result = AppManager.start_app("com.micropythonos.settings.wifi")
110110
self.assertTrue(result, "Failed to start WiFi settings app")
111-
wait_for_render(iterations=20)
111+
wait_for_render(iterations=25)
112112

113113
screen = lv.screen_active()
114114
print("\nWiFi screen labels (before scan wait):")
115115
print_screen_labels(screen)
116116

117117
print("\nWaiting 10 seconds for WiFi scan to finish...")
118118
time.sleep(10)
119-
wait_for_render(iterations=20)
119+
wait_for_render(iterations=25)
120120

121121
screen = lv.screen_active()
122122
print("\nWiFi screen labels (after scan wait):")
@@ -131,13 +131,13 @@ def test_hotspot_start_button_enables_hotspot(self):
131131
first_item.send_event(lv.EVENT.CLICKED, None)
132132
else:
133133
first_item.send_event(lv.EVENT.CLICKED, None)
134-
wait_for_render(iterations=40)
134+
wait_for_render(iterations=50)
135135

136136
self.assertTrue(
137137
click_button("Connect"),
138138
"Could not find Connect button in WiFi edit screen",
139139
)
140-
wait_for_render(iterations=40)
140+
wait_for_render(iterations=50)
141141

142142
self.assertFalse(
143143
WifiService.is_hotspot_enabled(),

0 commit comments

Comments
 (0)