Skip to content

Commit e37e23f

Browse files
committed
ci: add cmd script popup click
1 parent 150cf8c commit e37e23f

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

sample/Tests/test/test_windows_helpers.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,17 @@ 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+
# Handle deep link permission dialog
115+
print("Waiting for deep link permission dialog...")
116+
try:
117+
# Wait for the deep link dialog to appear and click "Open Immutable Sample.cmd"
118+
deep_link_button = wait.until(EC.element_to_be_clickable((By.XPATH, "//button[contains(text(), 'Open Immutable Sample.cmd')]")))
119+
deep_link_button.click()
120+
print("Clicked deep link permission dialog - Unity should receive redirect")
121+
except Exception as e:
122+
print(f"Deep link dialog not found or failed to click: {e}")
123+
print("This may cause the test to timeout waiting for scene change")
124+
114125
# Keep browser alive for Unity deep link redirect
115126
# driver.quit()
116127

0 commit comments

Comments
 (0)