Skip to content

Commit 6f76176

Browse files
test(web): the PR detail browser test sizes its scrollers with classes
Co-Authored-By: Claude Opus 5.5 <[email protected]>
1 parent 58d8273 commit 6f76176

1 file changed

Lines changed: 4 additions & 6 deletions

File tree

‎apps/web/src/components/pullRequest/PullRequestDetailPanel.browser.test.tsx‎

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -107,9 +107,9 @@ vi.mock(import("./PullRequestSummaryTab"), async (original) => ({
107107
Fix check
108108
</button>
109109
<div data-testid="nested-scroller" className="h-40 overflow-y-auto">
110-
<div style={{ height: 2000 }} />
110+
<div className="h-[2000px]" />
111111
</div>
112-
<div style={{ height: 3000 }} />
112+
<div className="h-[3000px]" />
113113
</div>
114114
)) as never,
115115
}));
@@ -141,7 +141,7 @@ vi.mock(import("./PullRequestCodeTab"), async (original) => ({
141141
>
142142
Add to agent
143143
</button>
144-
<div style={{ height: 3000 }} />
144+
<div className="h-[3000px]" />
145145
</div>
146146
)) as never,
147147
}));
@@ -220,9 +220,7 @@ const roots: Root[] = [];
220220

221221
function render(props: Partial<ComponentProps<typeof PullRequestDetailPanel>> = {}) {
222222
const container = document.createElement("div");
223-
container.style.height = "700px";
224-
container.style.width = "900px";
225-
container.style.display = "flex";
223+
container.className = "flex h-[700px] w-[900px]";
226224
document.body.append(container);
227225
const root = createRoot(container);
228226
roots.push(root);

0 commit comments

Comments
 (0)