From beb5c6208ad2d213a5466d1b6210baafa839b292 Mon Sep 17 00:00:00 2001 From: piquel Date: Sun, 22 Nov 2026 19:37:32 +0100 Subject: [PATCH] test(browser): the suite is no longer capped by a request budget --- .github/workflows/ci.yml | 7 ++++--- docs/dev/testing.md | 6 +++--- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 059ce646..09e6bc25 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -334,9 +334,10 @@ jobs: E2E_WEB_URL: https://web.localhost:3443 WEB_LISTENER: 127.0.0.1:3002 WEB_AUTH_ORIGIN: https://localhost:3443 - # The suite runs serially from one address, and spends in a minute what a - # person would in an hour. - AUTH_REQUESTS_PER_MINUTE: '1000' + # The suite runs from one address and spends in a minute what a person would + # in an hour, so no spec waits on a request budget: this is the most the + # counters hold. + AUTH_REQUESTS_PER_MINUTE: '2147483647' # The dashboard on an origin of its own, as admin.sourceorigin.dev is, on another # port of auth's host: its passkey dialog may use auth's RP ID there, which # admin.sourceorigin.dev does through auth's related origins. Browsers fetch those diff --git a/docs/dev/testing.md b/docs/dev/testing.md index 630ab7c8..a92e26e1 100644 --- a/docs/dev/testing.md +++ b/docs/dev/testing.md @@ -160,9 +160,9 @@ that regenerates it. loads or a command exits 0 proves little and still has to be maintained. - **Don't test that a removed feature stays removed.** Once the code is gone, there is nothing left to break. -- **Keep browser tests few.** Each spec says at its top what it covers. Auth's - pages share one request budget a minute, which the whole suite spends, so test - what a lower layer can't. +- **Cover in the browser whatever needs a browser.** Each spec says at its top + what it covers. CI's deployment of auth has no request limit, so a suite can be + as large as the behaviour needs. ## Recipes