We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a3f18d6 commit 958f012Copy full SHA for 958f012
test/e2e/login.test.ts
@@ -54,12 +54,16 @@ test.describe("login", () => {
54
// The current RateLimiter allows 2 logins per minute plus
55
// 12 logins per hour for a total of 14
56
// See: src/node/routes/login.ts
57
- for (let i = 1; i <= 14; i++) {
+ for (let i = 1; i <= 13; i++) {
58
await page.click(".submit")
59
await page.waitForLoadState("networkidle")
60
+ // We double-check that the correct error message shows
61
+ // which should be for incorrect password
62
+ expect(await page.isVisible("text=Incorrect password"))
63
}
64
- // The 15th should fail
65
+ // The 15th should fail for a different reason:
66
+ // login rate
67
68
69
expect(await page.isVisible("text=Login rate limited!"))
0 commit comments