Skip to content

Commit c68344e

Browse files
committed
test: support inline reasoning traces
1 parent 6055fe4 commit c68344e

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

tests/e2e/scenarios/toolFlows.spec.ts

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,8 +142,13 @@ test.describe("tool and reasoning flows", () => {
142142

143143
const transcript = page.getByRole("log", { name: "Conversation transcript" });
144144
const thinkingHeader = transcript.getByText("Thought");
145-
await expect(thinkingHeader).toBeVisible();
146-
await thinkingHeader.click();
145+
const hasThoughtLabel = (await thinkingHeader.count()) > 0;
146+
147+
if (hasThoughtLabel) {
148+
await expect(thinkingHeader.first()).toBeVisible();
149+
await thinkingHeader.first().click();
150+
}
151+
147152
await expect(
148153
transcript.getByText("Assessing quicksort mechanics and choosing example array...")
149154
).toBeVisible();

0 commit comments

Comments
 (0)