Skip to content

Commit eca8042

Browse files
committed
test(web): align html inspector checks with current props
1 parent 5ba177a commit eca8042

1 file changed

Lines changed: 2 additions & 8 deletions

File tree

‎apps/web/src/components/chat/V2ItemInspector.browser.test.tsx‎

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,12 @@ import { render } from "../../../test/render";
1414
import { V2ItemInspector } from "./V2ItemInspector";
1515

1616
const asset = vi.hoisted(() => ({ url: "" }));
17-
vi.mock(import("~/assets/assetUrls"), async (original) => ({
18-
...(await original()),
19-
useAssetUrlState: () => ({
17+
vi.mock(import("~/assets/longLivedAssetUrls"), () => ({
18+
useLongLivedAssetUrl: () => ({
2019
_tag: "Success",
2120
url: asset.url,
2221
expiresAt: Date.now() + 60 * 60_000,
2322
}),
24-
useAssetUrlRefresh: () => vi.fn(),
2523
}));
2624

2725
function setup() {
@@ -99,8 +97,6 @@ it("renders HTML tool details in the existing sandbox and fits the page", async
9997
<V2ItemInspector
10098
projectedItem={projectedHtml(source, updatedAt)}
10199
environmentId={EnvironmentId.make("environment-html")}
102-
onOpenThread={() => {}}
103-
onOpenTurnDiff={() => {}}
104100
/>
105101
);
106102
serve(html);
@@ -133,8 +129,6 @@ it.each([
133129
<V2ItemInspector
134130
projectedItem={projectedHtml(html, "2026-10-20T00:00:00Z", status, isError)}
135131
environmentId={EnvironmentId.make("environment-html")}
136-
onOpenThread={() => {}}
137-
onOpenTurnDiff={() => {}}
138132
/>,
139133
);
140134
expect(screen.container.textContent).toContain(html);

0 commit comments

Comments
 (0)