Skip to content

Commit a76f797

Browse files
committed
test: improve windows ui test deeplinking
1 parent 9d77d08 commit a76f797

2 files changed

Lines changed: 198 additions & 108 deletions

File tree

sample/Tests/test/test_windows.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
These tests require proper authentication URL logging to work correctly.
88
"""
99

10+
import os
1011
import time
1112
import unittest
1213

@@ -108,7 +109,12 @@ def _perform_login(self):
108109
stop_browser()
109110
if attempt == 0:
110111
print(f"Login attempt 1 failed: {err}")
111-
print("Retrying login...")
112+
print("Retrying login... clearing browser data for fresh session")
113+
import shutil
114+
brave_data = r"C:\temp\brave_debug"
115+
if os.path.exists(brave_data):
116+
shutil.rmtree(brave_data, ignore_errors=True)
117+
print("Cleared browser user data to avoid cached session issues")
112118
time.sleep(5)
113119
bring_sample_app_to_foreground()
114120
else:

0 commit comments

Comments
 (0)