-
Notifications
You must be signed in to change notification settings - Fork 183
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
[NOJIRA][BpkLoadingButton|BpkCloseButton]: fix loading console errors #3430
Conversation
Browser supportIf this is a visual change, make sure you've tested it in multiple browsers. |
Visit https://backpack.github.io/storybook-prs/3430 to see this build running in a browser. |
}); | ||
|
||
it('should render correctly with a "href" attribute', () => { | ||
const { asFragment } = render( | ||
<BpkLoadingButton href="#">My button</BpkLoadingButton>, | ||
); | ||
expect(asFragment()).toMatchSnapshot(); | ||
expect(error).not.toHaveBeenCalled(); | ||
}); | ||
|
||
it('should render correctly with a "primaryOnDark" attribute', () => { | ||
const { asFragment } = render( | ||
<BpkLoadingButton primaryOnDark>My button</BpkLoadingButton>, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Any reason our tests are still doing the old way and not actually using it as it should be?
With one test just working with an attribute?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The api of BpkLoadingButton
hasn't changed, just the underlying implementation.
…#3430) * fix loading button console error * fix close button prop type
…#3430) * fix loading button console error * fix close button prop type
…#3430) * fix loading button console error * fix close button prop type
…#3430) * fix loading button console error * fix close button prop type
Several
console.error
messages caused by incorrect rest statements and prop types fixedRemember to include the following changes:
[KOA-123][BpkButton] Updating the colour
README.md
(If you have created a new component)README.md