test(e2e): wait for CSRF readiness in login helper
CI / UI Checks (pull_request) Successful in 17s
CI / Rust Checks (pull_request) Successful in 57m49s
CI / Community Image Smoke (pull_request) Successful in 27m35s
CI / Frontend E2E (pull_request) Failing after 39m31s
CI / Rust Feature Validation (pull_request) Failing after 1h37m31s
CI / Required Checks (pull_request) Failing after 3s
CI / Deploy (pull_request) Skipped

This commit is contained in:
bsodfather authored and Codex (teamlead-profile) committed 2026-11-22 02:06:27 +00:00
1 parent 824259dc7c
commit 4241782f92
1 file changed
+5
+5
View File
@@ -19,6 +19,11 @@ async function login(page) {
await page.evaluate(async () => {
await window.CrankAuth.fetchSession(false);
});
await page.waitForFunction(() => Boolean(
window.CrankAuth &&
typeof window.CrankAuth.getCsrfToken === 'function' &&
window.CrankAuth.getCsrfToken()
));
}
async function browserJson(page, method, urlPath, body, okStatuses = [200]) {