Optimized the process for obtaining user sessions for SPA and comcipapic
This commit is contained in:
@@ -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)]);
|
||||
|
||||
Reference in New Issue
Block a user