Skip to content

Commit b4f1984

Browse files
committed
fix(showcase): align tool-rendering/frontend-tools testids to gold for claude-sdk-python + built-in-agent
1 parent 5f4d876 commit b4f1984

3 files changed

Lines changed: 11 additions & 11 deletions

File tree

showcase/integrations/built-in-agent/src/app/demos/tool-rendering-custom-catchall/custom-catchall-renderer.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export function CustomCatchallRenderer({
2424

2525
return (
2626
<div
27-
data-testid="custom-catchall-card"
27+
data-testid="custom-wildcard-card"
2828
data-tool-name={name}
2929
data-status={status}
3030
className="my-3 overflow-hidden rounded-2xl border border-[#DBDBE5] bg-white shadow-sm"
@@ -35,7 +35,7 @@ export function CustomCatchallRenderer({
3535
Tool
3636
</span>
3737
<span
38-
data-testid="custom-catchall-tool-name"
38+
data-testid="custom-wildcard-tool-name"
3939
className="font-mono text-sm text-[#010507]"
4040
>
4141
{name}
@@ -47,7 +47,7 @@ export function CustomCatchallRenderer({
4747
<div className="grid gap-3 p-4 text-sm">
4848
<Section label="Arguments">
4949
<pre
50-
data-testid="custom-catchall-args"
50+
data-testid="custom-wildcard-args"
5151
className="overflow-x-auto rounded-lg border border-[#E9E9EF] bg-[#FAFAFC] p-2.5 font-mono text-xs text-[#010507]"
5252
>
5353
{safeStringify(parameters)}
@@ -57,7 +57,7 @@ export function CustomCatchallRenderer({
5757
<Section label="Result">
5858
{done ? (
5959
<pre
60-
data-testid="custom-catchall-result"
60+
data-testid="custom-wildcard-result"
6161
className="overflow-x-auto rounded-lg border border-[#85ECCE4D] bg-[#85ECCE]/10 p-2.5 font-mono text-xs text-[#010507]"
6262
>
6363
{parsedResult !== undefined
@@ -96,7 +96,7 @@ function StatusBadge({ status }: { status: CatchallToolStatus }) {
9696
const { label, tone } = describeStatus(status);
9797
return (
9898
<span
99-
data-testid="custom-catchall-status"
99+
data-testid="custom-wildcard-status"
100100
className={`rounded-full px-2.5 py-0.5 text-[10px] font-medium uppercase tracking-[0.14em] ${tone}`}
101101
>
102102
{label}

showcase/integrations/claude-sdk-python/src/app/demos/frontend-tools/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ function Chat() {
6161
return (
6262
<div
6363
className="flex justify-center items-center h-screen w-full"
64-
data-testid="background-container"
64+
data-testid="frontend-tools-background"
6565
style={{ background }}
6666
>
6767
<div className="h-full w-full max-w-4xl">

showcase/integrations/claude-sdk-python/src/app/demos/tool-rendering-custom-catchall/custom-catchall-renderer.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export function CustomCatchallRenderer({
2424

2525
return (
2626
<div
27-
data-testid="custom-catchall-card"
27+
data-testid="custom-wildcard-card"
2828
data-tool-name={name}
2929
data-status={status}
3030
className="my-3 overflow-hidden rounded-2xl border border-[#DBDBE5] bg-white shadow-sm"
@@ -35,7 +35,7 @@ export function CustomCatchallRenderer({
3535
Tool
3636
</span>
3737
<span
38-
data-testid="custom-catchall-tool-name"
38+
data-testid="custom-wildcard-tool-name"
3939
className="font-mono text-sm text-[#010507]"
4040
>
4141
{name}
@@ -47,7 +47,7 @@ export function CustomCatchallRenderer({
4747
<div className="grid gap-3 p-4 text-sm">
4848
<Section label="Arguments">
4949
<pre
50-
data-testid="custom-catchall-args"
50+
data-testid="custom-wildcard-args"
5151
className="overflow-x-auto rounded-lg border border-[#E9E9EF] bg-[#FAFAFC] p-2.5 font-mono text-xs text-[#010507]"
5252
>
5353
{safeStringify(parameters)}
@@ -57,7 +57,7 @@ export function CustomCatchallRenderer({
5757
<Section label="Result">
5858
{done ? (
5959
<pre
60-
data-testid="custom-catchall-result"
60+
data-testid="custom-wildcard-result"
6161
className="overflow-x-auto rounded-lg border border-[#85ECCE4D] bg-[#85ECCE]/10 p-2.5 font-mono text-xs text-[#010507]"
6262
>
6363
{parsedResult !== undefined
@@ -96,7 +96,7 @@ function StatusBadge({ status }: { status: CatchallToolStatus }) {
9696
const { label, tone } = describeStatus(status);
9797
return (
9898
<span
99-
data-testid="custom-catchall-status"
99+
data-testid="custom-wildcard-status"
100100
className={`rounded-full px-2.5 py-0.5 text-[10px] font-medium uppercase tracking-[0.14em] ${tone}`}
101101
>
102102
{label}

0 commit comments

Comments
 (0)