Skip to content

Commit

Permalink
[test] Remove top-level inline-block from the regression tests (#43656)
Browse files Browse the repository at this point in the history
  • Loading branch information
Janpot authored Sep 13, 2024
1 parent f403201 commit f5179dd
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions test/regressions/TestViewer.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,12 @@ function TestViewer(props) {
};
}, []);

const viewerBoxSx = {
display: 'block',
p: 1,
position: 'relative',
};

return (
<React.Fragment>
<GlobalStyles
Expand Down Expand Up @@ -77,7 +83,7 @@ function TestViewer(props) {
<JoyBox
aria-busy={!ready}
data-testid="testcase"
sx={{ bgcolor: 'background.body', display: 'inline-block', p: 1 }}
sx={{ bgcolor: 'background.body', ...viewerBoxSx }}
>
{children}
</JoyBox>
Expand All @@ -86,7 +92,7 @@ function TestViewer(props) {
<Box
aria-busy={!ready}
data-testid="testcase"
sx={{ bgcolor: 'background.default', display: 'inline-block', p: 1 }}
sx={{ bgcolor: 'background.default', ...viewerBoxSx }}
>
{children}
</Box>
Expand Down

0 comments on commit f5179dd

Please sign in to comment.