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

Add tests for the CButton component #24

Merged
merged 5 commits into from
Apr 29, 2023
Merged

Add tests for the CButton component #24

merged 5 commits into from
Apr 29, 2023

Conversation

meretamal
Copy link
Owner

Description

This pull request aims to add some basic tests for the CButton. For this I had to install the jest dom library, provided by testing library, which allows to use some new matches to assert DOM events, states, etc.

Requirements

Install the new dependencies and run the tests:

yarn install
yarn test

Additional changes

I fixed the test in the CTextField and CSelect tests that were supposed to test that they were disabled.

@meretamal meretamal self-assigned this Apr 29, 2023
@netlify
Copy link

netlify bot commented Apr 29, 2023

Deploy Preview for delicate-rolypoly-ac40db ready!

Name Link
🔨 Latest commit 0566679
🔍 Latest deploy log https://app.netlify.com/sites/delicate-rolypoly-ac40db/deploys/644dad7f8a83e900074bbc53
😎 Deploy Preview https://deploy-preview-24--delicate-rolypoly-ac40db.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@meretamal meretamal merged commit df820ca into main Apr 29, 2023
@meretamal meretamal deleted the test/c-button branch April 29, 2023 23:52
@meretamal meretamal mentioned this pull request Apr 30, 2023
@meretamal meretamal added test Related to application testing and QA improvement General improvements to the project labels May 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
improvement General improvements to the project test Related to application testing and QA
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant