Skip to content

Commit

Permalink
add bg color test
Browse files Browse the repository at this point in the history
  • Loading branch information
sai6855 committed Sep 18, 2023
1 parent 7ee4f3a commit 1ff097d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/mui-joy/src/Button/Button.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,10 @@ describe('Joy <Button />', () => {
}
const { getByRole } = render(<Button disabled />);

expect(getByRole('button')).toHaveComputedStyle({ color: 'rgb(159, 166, 173)' });
expect(getByRole('button')).toHaveComputedStyle({
color: 'rgb(159, 166, 173)',
backgroundColor: 'rgb(240, 244, 248)',
});
});

it('should apply disabled styles when button is disabled and when component prop is provided', function test() {
Expand All @@ -152,6 +155,7 @@ describe('Joy <Button />', () => {

expect(getByRole('button')).toHaveComputedStyle({
color: 'rgb(159, 166, 173)',
backgroundColor: 'rgb(240, 244, 248)',
});
});
});
Expand Down

0 comments on commit 1ff097d

Please sign in to comment.