Skip to content

Commit 2821052

Browse files
committed
fix(tests): increase logout timeout for browser automation
Logout process requires browser interaction and takes longer. Extended timeout from 20s to 60s and added extra sleep time.
1 parent aa3b4ed commit 2821052

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

sample/Tests/test/test_windows.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -145,11 +145,11 @@ def test_7_reconnect_connect_imx(self):
145145
launch_browser()
146146
bring_sample_app_to_foreground()
147147
self.get_altdriver().find_object(By.NAME, "LogoutBtn").tap()
148-
time.sleep(5)
148+
time.sleep(10) # Give more time for logout browser process
149149
bring_sample_app_to_foreground()
150150

151-
# Wait for authenticated screen
152-
self.get_altdriver().wait_for_current_scene_to_be("UnauthenticatedScene")
151+
# Wait for authenticated screen with longer timeout for logout
152+
self.get_altdriver().wait_for_current_scene_to_be("UnauthenticatedScene", timeout=60)
153153
stop_browser()
154154
print("Logged out")
155155

0 commit comments

Comments
 (0)