Skip to content

Commit 42cf1f6

Browse files
committed
Fix tests
1 parent af5a6b0 commit 42cf1f6

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

ui/src/components/MultiModelResponse/MultiModelResponse.stories.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -288,15 +288,15 @@ export const ViewModeToggle: Story = {
288288
// Should have 2 toggle buttons
289289
await expect(toggleButtons.length).toBe(2);
290290

291-
// In grid mode, cards should have min-w-[500px] class (horizontal layout)
292-
let gridCards = canvasElement.querySelectorAll('[class*="min-w-[500px]"]');
291+
// In grid mode, cards should have basis-[min(500px,85vw)] class (horizontal layout)
292+
let gridCards = canvasElement.querySelectorAll('[class*="basis-"]');
293293
await expect(gridCards.length).toBe(2);
294294

295295
// Click the stacked button (second toggle button)
296296
await userEvent.click(toggleButtons[1]);
297297

298-
// After clicking stacked, cards should NOT have min-w-[500px] (vertical layout)
299-
gridCards = canvasElement.querySelectorAll('[class*="min-w-[500px]"]');
298+
// After clicking stacked, cards should NOT have basis-[min(500px,85vw)] (vertical layout)
299+
gridCards = canvasElement.querySelectorAll('[class*="basis-"]');
300300
await expect(gridCards.length).toBe(0);
301301

302302
// Cards should now be full width (w-full)

0 commit comments

Comments
 (0)