feat : use guide login only [no ci]
This commit is contained in:
@@ -49,8 +49,7 @@ describe("administrative security boundaries", () => {
|
||||
new URL("../components/auth/account-form.tsx", import.meta.url),
|
||||
"utf8",
|
||||
);
|
||||
expect(source).toContain('const captcha = !oidcOnly && process.env.NODE_ENV !== "development";');
|
||||
expect(source).toContain('{!oidcOnly && <>');
|
||||
expect(source).toContain('const captcha = process.env.NODE_ENV !== "development";');
|
||||
const loginGuard = "if (busy || (!register && captcha && !token)) return;";
|
||||
const registrationGuard = "if (!form?.reportValidity() || (captcha && !token)) return;";
|
||||
expect(source).toContain(loginGuard);
|
||||
|
||||
Reference in New Issue
Block a user