Skip to content

Commit

Permalink
Update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
atomiks committed Jan 9, 2025
1 parent 0cd3b5e commit b15ed26
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 10 deletions.
4 changes: 2 additions & 2 deletions packages/react/src/menu/positioner/MenuPositioner.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@ describe('<Menu.Positioner />', () => {
<Menu.Portal>
<Menu.Positioner
data-testid="positioner"
sideOffset={(data) => data.popup.width + data.anchor.width}
sideOffset={(data) => data.positioner.width + data.anchor.width}
>
<Menu.Popup style={popupStyle}>Popup</Menu.Popup>
</Menu.Positioner>
Expand Down Expand Up @@ -425,7 +425,7 @@ describe('<Menu.Positioner />', () => {
<Menu.Root open>
<Trigger style={triggerStyle}>Trigger</Trigger>
<Menu.Portal>
<Menu.Positioner data-testid="positioner" alignOffset={(data) => data.popup.width}>
<Menu.Positioner data-testid="positioner" alignOffset={(data) => data.positioner.width}>
<Menu.Popup style={popupStyle}>Popup</Menu.Popup>
</Menu.Positioner>
</Menu.Portal>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ describe('<Popover.Positioner />', () => {
<Popover.Portal>
<Popover.Positioner
data-testid="positioner"
sideOffset={(data) => data.popup.width + data.anchor.width}
sideOffset={(data) => data.positioner.width + data.anchor.width}
>
<Popover.Popup style={popupStyle}>Popup</Popover.Popup>
</Popover.Positioner>
Expand Down Expand Up @@ -173,7 +173,10 @@ describe('<Popover.Positioner />', () => {
<Popover.Root open>
<Trigger style={triggerStyle}>Trigger</Trigger>
<Popover.Portal>
<Popover.Positioner data-testid="positioner" alignOffset={(data) => data.popup.width}>
<Popover.Positioner
data-testid="positioner"
alignOffset={(data) => data.positioner.width}
>
<Popover.Popup style={popupStyle}>Popup</Popover.Popup>
</Popover.Positioner>
</Popover.Portal>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ describe('<PreviewCard.Positioner />', () => {
<PreviewCard.Portal>
<PreviewCard.Positioner
data-testid="positioner"
sideOffset={(data) => data.popup.width + data.anchor.width}
sideOffset={(data) => data.positioner.width + data.anchor.width}
>
<PreviewCard.Popup style={popupStyle}>Popup</PreviewCard.Popup>
</PreviewCard.Positioner>
Expand Down Expand Up @@ -175,7 +175,7 @@ describe('<PreviewCard.Positioner />', () => {
<PreviewCard.Portal>
<PreviewCard.Positioner
data-testid="positioner"
alignOffset={(data) => data.popup.width}
alignOffset={(data) => data.positioner.width}
>
<PreviewCard.Popup style={popupStyle}>Popup</PreviewCard.Popup>
</PreviewCard.Positioner>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ describe('<Select.Positioner />', () => {
<Select.Positioner
data-testid="positioner"
align="center"
sideOffset={(data) => data.popup.width + data.anchor.width}
sideOffset={(data) => data.positioner.width + data.anchor.width}
>
<Select.Popup style={popupStyle}>Popup</Select.Popup>
</Select.Positioner>
Expand Down Expand Up @@ -178,7 +178,7 @@ describe('<Select.Positioner />', () => {
<Select.Positioner
data-testid="positioner"
align="center"
alignOffset={(data) => data.popup.width}
alignOffset={(data) => data.positioner.width}
>
<Select.Popup style={popupStyle}>Popup</Select.Popup>
</Select.Positioner>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ describe('<Tooltip.Positioner />', () => {
<Tooltip.Portal>
<Tooltip.Positioner
data-testid="positioner"
sideOffset={(data) => data.popup.width + data.anchor.width}
sideOffset={(data) => data.positioner.width + data.anchor.width}
>
<Tooltip.Popup style={popupStyle}>Popup</Tooltip.Popup>
</Tooltip.Positioner>
Expand Down Expand Up @@ -173,7 +173,10 @@ describe('<Tooltip.Positioner />', () => {
<Tooltip.Root open>
<Trigger style={triggerStyle}>Trigger</Trigger>
<Tooltip.Portal>
<Tooltip.Positioner data-testid="positioner" alignOffset={(data) => data.popup.width}>
<Tooltip.Positioner
data-testid="positioner"
alignOffset={(data) => data.positioner.width}
>
<Tooltip.Popup style={popupStyle}>Popup</Tooltip.Popup>
</Tooltip.Positioner>
</Tooltip.Portal>
Expand Down

0 comments on commit b15ed26

Please sign in to comment.