You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
expect.objectContaining({method: "POST",label: "Chat Q&A",body: JSON.stringify({question: "Why is this blocked?"})}),
69
+
expect.objectContaining({
70
+
method: "POST",
71
+
label: "Chat Q&A",
72
+
body: JSON.stringify({question: "Why is this blocked?"}),
73
+
}),
56
74
);
57
75
});
58
76
59
77
it("renders the 'disabled' status distinctly",async()=>{
60
-
apiFetch.mockResolvedValue({ok: true,data: {status: "disabled",reason: "Chat Q&A is not enabled on this instance (settings.advisoryAiRouting.chatQa is off)."}});
78
+
apiFetch.mockResolvedValue({
79
+
ok: true,
80
+
data: {
81
+
status: "disabled",
82
+
reason:
83
+
"Chat Q&A is not enabled on this instance (settings.advisoryAiRouting.chatQa is off).",
it("renders the 'declined' status with its fallback command suggestion",async()=>{
76
107
apiFetch.mockResolvedValue({
77
108
ok: true,
78
-
data: {status: "declined",reason: "No cached deterministic facts are available.",suggestion: "Run `@loopover preflight` or `@loopover blockers` for the deterministic readiness facts."},
109
+
data: {
110
+
status: "declined",
111
+
reason: "No cached deterministic facts are available.",
112
+
suggestion:
113
+
"Run `@loopover preflight` or `@loopover blockers` for the deterministic readiness facts.",
it("renders the route-local 'rate_limited' status distinctly",async()=>{
110
-
apiFetch.mockResolvedValue({ok: true,data: {status: "rate_limited",reason: "The chat command has reached its rate limit (2 within 24h), shared with the @loopover chat PR-comment command."}});
170
+
apiFetch.mockResolvedValue({
171
+
ok: true,
172
+
data: {
173
+
status: "rate_limited",
174
+
reason:
175
+
"The chat command has reached its rate limit (2 within 24h), shared with the @loopover chat PR-comment command.",
0 commit comments