File tree Expand file tree Collapse file tree
ui/src/components/MultiModelResponse Expand file tree Collapse file tree Original file line number Diff line number Diff 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)
You can’t perform that action at this time.
0 commit comments