test(auto-reply): share elevated-off status assertion

This commit is contained in:
Peter Steinberger
2026-02-18 17:00:02 +00:00
parent 50e5413c19
commit 3138dbaf75
3 changed files with 11 additions and 8 deletions

View File

@@ -125,6 +125,13 @@ export function assertModelSelection(
expect(entry?.providerOverride).toBe(selection.provider);
}
export function assertElevatedOffStatusReply(text: string | undefined) {
expect(text).toContain("Elevated mode disabled.");
const optionsLine = text?.split("\n").find((line) => line.trim().startsWith("⚙️"));
expect(optionsLine).toBeTruthy();
expect(optionsLine).not.toContain("elevated");
}
export function installDirectiveBehaviorE2EHooks() {
beforeEach(() => {
vi.mocked(runEmbeddedPiAgent).mockReset();