fix(account): polish sidebar favorites and sync feedback

This commit is contained in:
2026-05-19 23:48:41 +08:00
parent 932e69fca7
commit 8d80a02316
18 changed files with 403 additions and 56 deletions
+8
View File
@@ -4,6 +4,14 @@ import { describe, expect, it } from "vitest";
import LoginModal from "@/components/LoginModal.vue";
describe("LoginModal", () => {
it("does not show the old password forwarding note", () => {
render(LoginModal, {
props: { show: true, loading: false, error: "" },
});
expect(screen.queryByText(/密码仅直接/)).toBeNull();
});
it("emits login credentials and register request", async () => {
const rendered = render(LoginModal, {
props: { show: true, loading: false, error: "" },