Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions docs/dev/testing.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
Loading