Add login button pending feedback

This commit is contained in:
2569718930@qq.com
2026-05-30 21:31:13 +08:00
parent 383dfe4d0e
commit 9c239c0394
2 changed files with 26 additions and 4 deletions
@@ -50,6 +50,14 @@ export function runTests() {
fs.existsSync(resetClientPath),
"password reset page must use a dedicated client component",
);
assert(
loginClientSource.includes("loadingSpinner") &&
loginClientSource.includes("submittingLabel") &&
loginClientSource.includes("googleSubmittingLabel") &&
loginClientSource.includes('aria-busy={loading}') &&
loginClientSource.includes("animate-spin"),
"login submit and Google sign-in buttons must show a visible loading spinner and pending label",
);
const resetClientSource = fs.readFileSync(resetClientPath, "utf8");
assert(