diff --git a/README.md b/README.md index 0924ff1..f70c997 100644 --- a/README.md +++ b/README.md @@ -395,9 +395,31 @@ that is public on npm anyway. The `substandard:own-sourcemaps` plugin in mapping intact, so stack traces still resolve. Net effect on the upload: 290 kB → 599 kB, against 974 kB for untrimmed maps. -Before uploading, exercise the artifact under the identity it will actually -run as: `npm run rc` (`scripts/rc-load.mjs`) takes the newest zip in -`release/`, or one named on the command line. +Two checks run against a built extension rather than the source, because the +bug that shipped in v1.2.1 was in the wiring between modules that all had +passing unit tests. + +`npm run smoke` (`scripts/smoke-test.mjs`) asks whether detection still works +at all: it loads `dist/` into a headless Chrome and visits real publications +over the real network, one per detection route — `standard.site` (no `` +hint, found by the origin well-known), `atproto.com/blog` (a hint, plus a +path-scoped well-known because the origin 404s), `permadeath.com` (both) — and +`example.com` as the control that catches a build which "detects" everything. +For each it asserts the publication, its verification, its DID and the icon +state a real toolbar would show. + +Because the routes are separated, a failure says which one broke. Pointing the +well-known probe at a path that does not exist fails the well-known-only site +with "no publication detected" while the hint-carrying sites degrade to +`warning` — found, but unverified. + +It talks to the live internet, so it is not a `prek` hook and not part of +`npm test`. Run it on the tree about to be packaged; `--headful` watches it +happen. + +`npm run rc` (`scripts/rc-load.mjs`) is the other half, and asks whether +sign-in works under the identity the build will actually run as. It takes the +newest zip in `release/`, or one named on the command line. Loading `dist/` unpacked cannot catch a v1.2.1-class bug. Unpacked runs under the *dev* id pinned by the manifest `key`, and that id was in the bundled