test: add elevated mode regressions

This commit is contained in:
Peter Steinberger
2026-01-10 05:31:48 +01:00
parent 66db6c749d
commit 920b3880c1
4 changed files with 313 additions and 0 deletions

View File

@@ -580,6 +580,11 @@ describe("trigger handling", () => {
);
const text = Array.isArray(res) ? res[0]?.text : res?.text;
expect(text).toContain("Elevated mode disabled.");
const store = loadSessionStore(cfg.session.store);
expect(store["agent:main:whatsapp:group:123@g.us"]?.elevatedLevel).toBe(
"off",
);
});
});