Skip to content

Commit 98a00b3

Browse files
committed
ci: keep browser alive for Unity deep link redirect in tests
1 parent 2900b39 commit 98a00b3

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

sample/.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
**/Payload.ipa
22
**/logFile.log
3-
**/local.log
3+
**/local.log
4+
venv/

sample/Tests/test/test_windows_helpers.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,9 @@ def login():
5656

5757
# Get all window handles
5858
all_windows = driver.window_handles
59-
59+
6060
print(f"Found {len(all_windows)} new windows to check: {all_windows}")
61-
61+
6262
# Find the window with email input
6363
target_window = None
6464
for window in all_windows:
@@ -72,12 +72,12 @@ def login():
7272
except:
7373
print(f"Email input not found in window: {window}, trying next...")
7474
continue
75-
75+
7676
if not target_window:
7777
print("Could not find email input field in any window!")
7878
driver.quit()
7979
return
80-
80+
8181
print("Switch to the target window")
8282
driver.switch_to.window(target_window)
8383

@@ -111,7 +111,8 @@ def login():
111111
wait.until(EC.presence_of_element_located((By.CSS_SELECTOR, 'h1[data-testid="checking_title"]')))
112112
print("Connected to Passport!")
113113

114-
driver.quit()
114+
# Keep browser alive for Unity deep link redirect
115+
# driver.quit()
115116

116117
def open_sample_app():
117118
product_name = get_product_name()

0 commit comments

Comments
 (0)