Fixed the SPA authentication flow
This commit is contained in:
@@ -342,7 +342,7 @@ test("both options requests must succeed before fields enable; email and lookup
|
||||
test("Action defaults use current user and lookup labels; only Notes is optional", async () => {
|
||||
const h = optionsSetup();
|
||||
const identity = h.app.currentUser.ensure();
|
||||
h.calls[0].resolve({ ok: true, user: { id: "OWNER@example.invalid", roles: ["SIMPLE_USER"] } });
|
||||
h.calls[0].resolve({ ok: true, user: { id: "OWNER@example.invalid", name: "Synthetic Owner", roles: ["SIMPLE_USER"] } });
|
||||
await identity;
|
||||
assert.equal(h.app.currentUser.getUserId(), "OWNER@example.invalid");
|
||||
h.calls.length = 0;
|
||||
|
||||
Reference in New Issue
Block a user