Skip to content

Commit

Permalink
WIP tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mj12albert committed Jul 9, 2024
1 parent 89fe34f commit 4c22a8c
Showing 1 changed file with 20 additions and 18 deletions.
38 changes: 20 additions & 18 deletions packages/mui-base/src/Progress/Indicator/ProgressIndicator.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,24 +34,26 @@ describe('<Progress.Indicator />', () => {
refInstanceof: window.HTMLSpanElement,
}));

it('should provide internal styles', function test() {
if (/jsdom/.test(window.navigator.userAgent)) {
this.skip();
}

const { getByTestId } = render(
<Progress.Root value={33}>
<Progress.Track>
<Progress.Indicator data-testid="indicator" />
</Progress.Track>
</Progress.Root>,
);

const indicator = getByTestId('indicator');

expect(indicator).toHaveComputedStyle({
left: '0px',
width: '33%',
describe('internal styles', () => {
it('determinate', function test() {
if (/jsdom/.test(window.navigator.userAgent)) {
this.skip();
}

const { getByTestId } = render(
<Progress.Root value={33}>
<Progress.Track>
<Progress.Indicator data-testid="indicator" />
</Progress.Track>
</Progress.Root>,
);

const indicator = getByTestId('indicator');

expect(indicator).toHaveComputedStyle({
left: '0px',
width: '33%',
});
});
});
});

0 comments on commit 4c22a8c

Please sign in to comment.