Optimized the process for obtaining user sessions for SPA and comcipapic

This commit is contained in:
2026-10-27 03:34:23 -03:00
parent 1d5b28e95b
commit 8d2110e8e8
13 changed files with 20 additions and 20 deletions

View File

@@ -55,7 +55,6 @@ test("error, SAML/login, blank and incomplete pages never authorize a fetch", as
[{ loginSelector: 'input[name="SAMLRequest"]' }, "login"],
[{ loginSelector: 'input[type="password"]' }, "login"],
[{ loginSelector: 'meta[http-equiv="refresh" i]' }, "login"],
[{ readyState: "interactive" }, "loading"],
[{ readyState: "loading" }, "loading"],
[{ title: "", body: "" }, "loading"],
[{ controls: false }, "loading"]
@@ -72,6 +71,7 @@ test("error, SAML/login, blank and incomplete pages never authorize a fetch", as
for (const family of ["chrome", "browser"]) {
test(`${family}: a loaded application reads identity once per document in its own authenticated context`, async () => {
const h = harness({ family });
h.dom.readyState = "interactive";
const page = await h.send(inspect);
assert.equal(page.status, "ready");
const [first, second] = await Promise.all([h.send(read, page.documentId), h.send(read, page.documentId)]);