Tests: Add JavaScript unit tests for validation and condition logic#339
Tests: Add JavaScript unit tests for validation and condition logic#339
Conversation
|
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the Core Committers: Use this line as a base for the props when committing in SVN: To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## trunk #339 +/- ##
============================================
+ Coverage 30.63% 31.03% +0.39%
Complexity 4410 4410
============================================
Files 291 291
Lines 36918 36918
============================================
+ Hits 11310 11457 +147
+ Misses 25608 25461 -147
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
What
Add JavaScript unit tests for client-side validation and conditional field visibility logic.
Why
These modules handle user-facing validation messages and field visibility—errors here directly impact form usability.
How
condition-types.test.jsHasValue,EqualTo,GreaterThan,LessThan,Contains,PatternMatch, etc.)validation.test.jsconditions-manager.test.jscondition-base.test.jsacf.Conditionclass and registration functions