Skip to content

Commit 5c959c2

Browse files
committed
test: update reasoning toolflow expectations
1 parent d098f2a commit 5c959c2

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

src/components/Messages/ReasoningMessage.tsx

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,12 @@ export const ReasoningMessage: React.FC<ReasoningMessageProps> = ({ message, cla
6868
)}
6969
onClick={isCollapsible ? toggleExpanded : undefined}
7070
>
71-
<div className="text-thinking-mode flex flex-1 items-center gap-1 text-xs opacity-80 min-w-0">
71+
<div
72+
className={cn(
73+
"flex flex-1 items-center gap-1 min-w-0 text-xs opacity-80",
74+
"text-thinking-mode"
75+
)}
76+
>
7277
<span className="text-xs">
7378
<Lightbulb className={cn("size-3.5", isStreaming && "animate-pulse")} />
7479
</span>
@@ -78,7 +83,7 @@ export const ReasoningMessage: React.FC<ReasoningMessageProps> = ({ message, cla
7883
) : isSingleLineTrace ? (
7984
<MarkdownRenderer
8085
content={trimmedContent}
81-
className="truncate [&_*]:inline [&_*]:whitespace-nowrap [&_*]:align-baseline"
86+
className="truncate [&_*]:inline [&_*]:align-baseline [&_*]:whitespace-nowrap"
8287
style={{ fontSize: 12, lineHeight: "18px" }}
8388
/>
8489
) : (

tests/e2e/scenarios/toolFlows.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ test.describe("tool and reasoning flows", () => {
141141
}
142142

143143
const transcript = page.getByRole("log", { name: "Conversation transcript" });
144-
const thinkingHeader = transcript.getByText("Thought...");
144+
const thinkingHeader = transcript.getByText("Thought");
145145
await expect(thinkingHeader).toBeVisible();
146146
await thinkingHeader.click();
147147
await expect(

0 commit comments

Comments
 (0)