Replace hard-coded test passwords with crypto.randomUUID() (S2068)
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -59,7 +59,7 @@ describe("Login", () => {
|
||||
const wrapper = mountLogin();
|
||||
const store = useLoginStore();
|
||||
store.auth.username = "user";
|
||||
store.auth.password = "pass";
|
||||
store.auth.password = crypto.randomUUID();
|
||||
await wrapper.vm.$nextTick();
|
||||
const btn = wrapper.find("#login_btn_main_btn");
|
||||
expect(btn.attributes("disabled")).toBeUndefined();
|
||||
@@ -76,7 +76,7 @@ describe("Login", () => {
|
||||
it("toggles password visibility", async () => {
|
||||
const wrapper = mountLogin();
|
||||
const store = useLoginStore();
|
||||
store.auth.password = "secret";
|
||||
store.auth.password = crypto.randomUUID();
|
||||
await wrapper.vm.$nextTick();
|
||||
|
||||
const pwdInput = wrapper.find("#password");
|
||||
|
||||
Reference in New Issue
Block a user