Elevate planner UX and offline resilience
This commit is contained in:
+4
-4
@@ -76,10 +76,10 @@ test("strict CSP/static modules, no-store data, auth lifecycle, and ownership sh
|
||||
const mainScript = await anonymous.get("/js/main.js");
|
||||
assert.match(mainScript.text, /roastPlannerPlan\.v2/);
|
||||
assert.match(mainScript.text, /localStorage\.removeItem\(key\)/);
|
||||
assert.match(
|
||||
(await anonymous.get("/sw.js")).text,
|
||||
/Never serve authenticated/,
|
||||
);
|
||||
const serviceWorker = (await anonymous.get("/sw.js")).text;
|
||||
assert.match(serviceWorker, /data-free authenticated shell/);
|
||||
assert.match(serviceWorker, /url\.pathname === "\/app" \? caches\.match\("\/app"\)/);
|
||||
assert.match(serviceWorker, /logout clears that namespace/);
|
||||
|
||||
const one = await signup(first, "[email protected]");
|
||||
const two = await signup(second, "[email protected]");
|
||||
|
||||
Reference in New Issue
Block a user