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