diff --git a/web/src/components/ui/select.tsx b/web/src/components/ui/select.tsx index 6f728a22..41b04f71 100644 --- a/web/src/components/ui/select.tsx +++ b/web/src/components/ui/select.tsx @@ -71,6 +71,7 @@ function SelectContent({ alignOffset={alignOffset} side={side} sideOffset={sideOffset} + className="isolate z-dropdown" > { + it("places the positioner in the dropdown stacking layer", () => { + const items = [ + { value: "create_time", label: "Created" }, + { value: "update_time", label: "Last updated" }, + ]; + render( + , + ); + + fireEvent.click(screen.getByRole("combobox", { name: "Shown time" })); + + const popup = document.querySelector('[data-slot="select-content"]'); + expect(popup).not.toBeNull(); + expect(popup?.parentElement).toHaveClass("isolate", "z-dropdown"); + }); +});