Add mock test for a 413 response from v1/challenge

This commit is contained in:
Scott Nonnenberg 2024-09-10 06:31:20 +10:00 committed by GitHub
parent 2a55bfbef9
commit 9efb046a06
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
10 changed files with 194 additions and 59 deletions

View file

@ -22,6 +22,7 @@ import {
import { stats } from '../../util/benchmark/stats';
import { sleep } from '../../util/sleep';
import { typeIntoInput } from '../helpers';
import { MINUTE } from '../../util/durations';
const LAST_MESSAGE = 'start sending messages now';
@ -164,7 +165,7 @@ Bootstrap.benchmark(async (bootstrap: Bootstrap): Promise<void> => {
const item = window
.locator(`.module-message >> text="${LAST_MESSAGE}"`)
.first();
await item.click();
await item.click({ timeout: MINUTE });
}
const deltaList = new Array<number>();