Skip to content

Commit

Permalink
feat: add control username/password on login page
Browse files Browse the repository at this point in the history
Signed-off-by: sebastien.heurtematte <sebastien.heurtematte@eclipse-foundation.org>
  • Loading branch information
heurtematte committed Sep 25, 2024
1 parent fa353cb commit 7ce4b56
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions github/playwright/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,12 @@ def login(page, project_name, username, password):
if not response.ok:
raise RuntimeError(f"unable to load GitHub login page: {response.status}")

print("Login page loaded.")
print("Username: " + username)

if username is None or password is None or username == "" or password == "":
raise RuntimeError("Username or password not set.")

# login
page.get_by_label("Username or email address").click()
page.get_by_label("Username or email address").fill(username)
Expand Down

0 comments on commit 7ce4b56

Please sign in to comment.