Increase Timeout on login
This commit is contained in:
@@ -73,7 +73,7 @@ def login(context: BrowserContext, page: Page) -> Page:
|
||||
page.fill("#password-field", Config.BACKBLAZE_PASSWORD)
|
||||
page.click("#submit-button")
|
||||
page.wait_for_load_state("domcontentloaded")
|
||||
time.sleep(2)
|
||||
time.sleep(5)
|
||||
|
||||
code_field = page.locator("#code-field")
|
||||
if code_field.count() > 0:
|
||||
@@ -84,7 +84,7 @@ def login(context: BrowserContext, page: Page) -> Page:
|
||||
remember.check()
|
||||
page.click("#submit-button")
|
||||
page.wait_for_load_state("domcontentloaded")
|
||||
time.sleep(2)
|
||||
time.sleep(5)
|
||||
|
||||
if "user_signin" in page.url:
|
||||
raise RuntimeError("Login failed - check credentials")
|
||||
|
||||
Reference in New Issue
Block a user