Skip to content

fix: passport prefab #548

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: feat/passport-prefab
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions sample/.gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
**/Payload.ipa
**/logFile.log
**/local.log
venv/
**/local.log
11 changes: 5 additions & 6 deletions sample/Tests/test/test_windows_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,9 @@ def login():

# Get all window handles
all_windows = driver.window_handles

print(f"Found {len(all_windows)} new windows to check: {all_windows}")

# Find the window with email input
target_window = None
for window in all_windows:
Expand All @@ -72,12 +72,12 @@ def login():
except:
print(f"Email input not found in window: {window}, trying next...")
continue

if not target_window:
print("Could not find email input field in any window!")
driver.quit()
return

print("Switch to the target window")
driver.switch_to.window(target_window)

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

# Keep browser alive for Unity deep link redirect
# driver.quit()
driver.quit()

def open_sample_app():
product_name = get_product_name()
Expand Down
Loading