-
Notifications
You must be signed in to change notification settings - Fork 23
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
Created tests for disable rule modal #111
Conversation
I need some help to write spy to capture function calls to |
We can help you with these scenarios (after GA, most probably). I think we also can take advantage of Also, asserting JS functions or capturing React component methods calls can be also done via Jest (that we have integrated in the project). I will try to compare both approaches and complete the PR (or assign Alex to it). |
This fixes a bug: if user selects multiple clusters, unchecks "Disable recommendation for selected clusters" flag, then the recommendation will only be disabled for selected clusters. This is incorrect, and the recommendation should be disabled for all clusters in this scenario.
Codecov Report
@@ Coverage Diff @@
## master #111 +/- ##
==========================================
+ Coverage 76.58% 80.81% +4.22%
==========================================
Files 27 27
Lines 897 938 +41
Branches 322 343 +21
==========================================
+ Hits 687 758 +71
+ Misses 210 180 -30
Continue to review full report at Codecov.
|
🎉 This PR is included in version 1.3.6 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
Add test for the rule disabling modal that appears in the AffectedClustersTable