No test signs in with the sign-in form #393
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Found by the page coverage (#390): web/src/login.ts runs at 0% in the browser suite, since every test signs in with the token link. A broken form (a wrong field name, a lost error message, a redirect that goes nowhere) would pass every test.
Done in
352e2b7: tests/ui/login.spec.ts checks the redirect to the form when signed out, a wrong password's message and staying signed out, and signing in with Enter as admin. It fails when the form drops the server's message. login.ts coverage 0% to 87% of lines.