fix(atcoder): remove post-upload settle delay before submit
This commit is contained in:
parent
d56fd38ab2
commit
95100dbd8d
2 changed files with 0 additions and 3 deletions
|
|
@ -30,7 +30,6 @@ from .timeouts import (
|
||||||
BROWSER_ELEMENT_WAIT,
|
BROWSER_ELEMENT_WAIT,
|
||||||
BROWSER_NAV_TIMEOUT,
|
BROWSER_NAV_TIMEOUT,
|
||||||
BROWSER_SESSION_TIMEOUT,
|
BROWSER_SESSION_TIMEOUT,
|
||||||
BROWSER_SETTLE_DELAY,
|
|
||||||
BROWSER_SUBMIT_NAV_TIMEOUT,
|
BROWSER_SUBMIT_NAV_TIMEOUT,
|
||||||
BROWSER_TURNSTILE_POLL,
|
BROWSER_TURNSTILE_POLL,
|
||||||
HTTP_TIMEOUT,
|
HTTP_TIMEOUT,
|
||||||
|
|
@ -500,7 +499,6 @@ def _submit_headless(
|
||||||
"buffer": Path(file_path).read_bytes(),
|
"buffer": Path(file_path).read_bytes(),
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
page.wait_for_timeout(BROWSER_SETTLE_DELAY)
|
|
||||||
page.locator('button[type="submit"]').click(no_wait_after=True)
|
page.locator('button[type="submit"]').click(no_wait_after=True)
|
||||||
page.wait_for_url(
|
page.wait_for_url(
|
||||||
lambda url: "/submissions/me" in url,
|
lambda url: "/submissions/me" in url,
|
||||||
|
|
|
||||||
|
|
@ -11,4 +11,3 @@ BROWSER_SUBMIT_NAV_TIMEOUT["atcoder"] = BROWSER_NAV_TIMEOUT * 2
|
||||||
BROWSER_SUBMIT_NAV_TIMEOUT["codeforces"] = BROWSER_NAV_TIMEOUT * 2
|
BROWSER_SUBMIT_NAV_TIMEOUT["codeforces"] = BROWSER_NAV_TIMEOUT * 2
|
||||||
BROWSER_TURNSTILE_POLL = 5000
|
BROWSER_TURNSTILE_POLL = 5000
|
||||||
BROWSER_ELEMENT_WAIT = 10000
|
BROWSER_ELEMENT_WAIT = 10000
|
||||||
BROWSER_SETTLE_DELAY = 500
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue