Unit tests

This commit is contained in:
yuneng-jiang
2025-12-03 23:46:09 -08:00
parent 59b32c28a8
commit 5496e622c1

View File

@@ -193,7 +193,7 @@ describe("CreateKeyPage auth behavior", () => {
// Assert: we eventually redirect to SSO login (single replace, not assign/href)
await waitFor(() => {
expect(window.location.replace).toHaveBeenCalledWith("https://example.com/sso/key/generate");
expect(window.location.replace).toHaveBeenCalledWith("https://example.com/ui/login");
});
// And we attempted to clear the cookie (defensive deletion)