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

test: add callback events cases #473

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft

Conversation

fbasso
Copy link
Contributor

@fbasso fbasso commented Feb 9, 2024

PR to discuss about controlled/uncontrolled widget and when the events must be triggers.

I just added two test for now. It simulates a select, where the user inputs are changed in uppercase, and monitor the onTextFilterChange and the onOpenChange callbacks.

Run the test with npm run tdd:ui core select and have a look at the expect statements.

@fbasso fbasso marked this pull request as draft February 9, 2024 10:19
Copy link

codecov bot commented Feb 9, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 83.25%. Comparing base (a73c434) to head (ea73404).

Additional details and impacted files
@@             Coverage Diff             @@
##             main     #473       +/-   ##
===========================================
- Coverage   93.47%   83.25%   -10.23%     
===========================================
  Files          67       65        -2     
  Lines        2099     2054       -45     
  Branches      379      367       -12     
===========================================
- Hits         1962     1710      -252     
- Misses         73      215      +142     
- Partials       64      129       +65     
Flag Coverage Δ
e2e 83.25% <ø> (ø)
unit ?

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

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.

None yet

1 participant