fix(consult): align stream-layout contract with folded audit markup
The activity-row assertion still expected a one-line ChatMessageContent call, which cancelled the staging gate. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -57,7 +57,9 @@ test("shows honest agent activity states before and during streamed text", () =>
|
||||
assert.match(messageRowSource, /正在处理…/);
|
||||
assert.match(messageRowSource, /showActivity = message\.state !== "settled"/);
|
||||
assert.match(messageRowSource, /\{showActivity && \(/);
|
||||
assert.match(messageRowSource, /message\.text && <ChatMessageContent text=\{message\.text\}/);
|
||||
assert.match(messageRowSource, /message\.text && \(/);
|
||||
assert.match(messageRowSource, /<ChatMessageContent[\s\S]*text=\{message\.text\}[\s\S]*auditRows=\{message\.agentExecutionReceipt\?\.techniqueAuditTable\}/);
|
||||
assert.match(globalStyles, /\.agent-activity-status \+ \.message-answer/);
|
||||
assert.match(activitySource, /<ThinkingOrb aria-hidden="true" state=\{state\} size=\{20\}/);
|
||||
assert.match(activitySource, /className="agent-activity-status__text"/);
|
||||
assert.match(globalStyles, /@keyframes agent-activity-shimmer/);
|
||||
|
||||
Reference in New Issue
Block a user