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

chore(Button): update tests #9558

Merged
merged 2 commits into from
Oct 6, 2023
Merged

Conversation

kmcfaul
Copy link
Contributor

@kmcfaul kmcfaul commented Aug 31, 2023

What: Closes #9527

@patternfly-build
Copy link
Contributor

patternfly-build commented Aug 31, 2023

Copy link
Contributor

@thatblindgeye thatblindgeye left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some files changes noted below. Could we also add tests for the following:

  • when isActive is passed
  • A test for checking the component renders without children (similar to the first Alert test)
  • having a single snapshot test for a basic button
  • when passing a custom className
  • checking that the pf-v5-c-button class is applied by default
  • checking that pf-m-progress is applied whenever isLoading is either true or false
    • also checking that pf-m-progress is not applied for the above if the variant is "plain"

@tlabaj tlabaj merged commit 8a6d4d4 into patternfly:main Oct 6, 2023
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Button
4 participants