Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FP-1650: Test Cases for _common/Button #640

Merged
merged 12 commits into from
Jun 14, 2022
Merged
Prev Previous commit
Next Next commit
fix(fp-1650): fixes from tup-ui PR
  • Loading branch information
wesleyboar committed Jun 13, 2022
commit e80f9de1af9160ff8f73bfe906271957b0908d69
4 changes: 2 additions & 2 deletions client/src/components/_common/Button/Button.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,15 +109,15 @@ describe('Button', () => {
<Button data-testid="no button here">{TEST_TEXT}</Button>
);
const el = queryByTestId('no button here');
expect(el).toBeNull;
expect(el).toBeNull();
});
it('disables button when in loading state', () => {
muteTypeNotLinkNoSizeLog();
const { queryByText } = render(
<Button isLoading={true}>Loading Button</Button>
);
const el = queryByText('Loading Button');
expect(el).toBeDisabled;
expect(el).toBeDisabled();
});
});

Expand Down