fix(qa): expect Telegram authorization rejection

(cherry picked from commit 606a5b32b1)
This commit is contained in:
Dallin Romney
2026-07-13 19:09:59 -07:00
parent 628c8c832a
commit 948bbdf7ca
2 changed files with 6 additions and 2 deletions
@@ -700,7 +700,10 @@ describe("telegram live qa runtime", () => {
).buildRun("sut_bot").steps;
expect(repeatedSteps[0]?.driverGroupAuthorization).toBe("deny");
expect(repeatedSteps[0]?.input).toBe("/status@sut_bot");
expect(repeatedSteps[0]?.expectReply).toBe(false);
expect(repeatedSteps[0]?.expectReply).toBe(true);
expect(repeatedSteps[0]?.expectedTextIncludes).toEqual([
"You are not authorized to use this command.",
]);
expect(repeatedSteps[1]?.driverGroupAuthorization).toBe("allow");
expect(repeatedSteps[1]?.input).toBe("/status@sut_bot");
expect(repeatedSteps[1]?.expectReply).toBe(true);
@@ -332,8 +332,9 @@ const TELEGRAM_QA_SCENARIOS: TelegramQaScenarioDefinition[] = [
const steps = [
{
driverGroupAuthorization: "deny",
expectReply: false,
expectReply: true,
input: `/status@${sutUsername}`,
expectedTextIncludes: ["You are not authorized to use this command."],
timeoutMs: 8_000,
},
{