test(e2e): gate the Audiobookshelf SSO round trip end to end

The service answers on a LAN address with no vhost, so it was in no
guarded-vhost list and no spec touched it: every deploy gate passed while its
login was dead. The gate signs in as qa-e2e-admin and asserts the two
consumer-visible outcomes that the two defect classes break - every .js the
SPA loads arrives as JavaScript (a bundle built for the wrong base path comes
back text/html and boots nothing), and /api/me answers 200 with type 'admin'
(true only while grant types, the OpenID scope mappings and the group claim
all hold). Joined to the admin project, so it rides every deploy e2e gate.
This commit is contained in:
Frank committed 2026-11-02 20:21:21 -08:00
1 parent 27b3c24065
commit d82b8efdd7
2 files changed
+96 -1

No files matched your search

+4 -1
View File
@@ -42,7 +42,10 @@ export default defineConfig({
},
{
name: "admin",
testMatch: /11-.*\.spec\.ts/,
// 23- joins 2026-11-02 (Audiobookshelf SSO): it needs BOTH halves of the admin
// fixture — a live authentik session to ride the OIDC round trip, and the
// qa-e2e-admin group membership that grants site admin in the app.
testMatch: /(11|23)-.*\.spec\.ts/,
use: { storageState: ".auth/qa-e2e-admin.json" },
dependencies: ["setup"],
},