Skip to content

Open-source Grok Bot alternative with a virtual machine that bots can use

The Ask every time tests give their bots that rule

milind-soni2ed7ab48967f
diff --git a/server/trust-controls.e2e.test.ts b/server/trust-controls.e2e.test.ts
index 9686bb612d..8c448ca033 100644
--- a/server/trust-controls.e2e.test.ts
+++ b/server/trust-controls.e2e.test.ts
@@ -123,7 +123,8 @@ beforeAll(async () => {
full.autoApprove = false;
for (const task of full.tasks) { task.approvalMode = "full"; task.autoApprove = false; }
}
- bots.find((row: any) => row.id === outboundPolicyBot.id).outbound = { policy: "ask", dailyCap: 100 };
+ // Full access asks only for a bot someone set a sending rule on.
+ for (const bot of [fullBot, draftBot, draftHelper, outboundPolicyBot]) bots.find((row: any) => row.id === bot.id).outbound = { policy: "ask", dailyCap: 100 };
writeFileSync(botsFile, JSON.stringify(bots));
const configFile = join(fixture.info.dataDir, "config.json");
const config = JSON.parse(readFileSync(configFile, "utf8"));