File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -54,12 +54,16 @@ test.describe("login", () => {
54
54
// The current RateLimiter allows 2 logins per minute plus
55
55
// 12 logins per hour for a total of 14
56
56
// See: src/node/routes/login.ts
57
- for ( let i = 1 ; i <= 14 ; i ++ ) {
57
+ for ( let i = 1 ; i <= 13 ; i ++ ) {
58
58
await page . click ( ".submit" )
59
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" ) )
60
63
}
61
64
62
- // The 15th should fail
65
+ // The 15th should fail for a different reason:
66
+ // login rate
63
67
await page . click ( ".submit" )
64
68
await page . waitForLoadState ( "networkidle" )
65
69
expect ( await page . isVisible ( "text=Login rate limited!" ) )
You can’t perform that action at this time.
0 commit comments