-
-
Notifications
You must be signed in to change notification settings - Fork 346
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
fix: no warning when editing a comment to an empty comment #3411 #3502
Conversation
1 flaky test on run #5660 ↗︎
Details:
src/integration/research/write.spec.ts • 1 flaky test • ci-chrome
Review all test suite changes for PR #3502 ↗︎ |
Thanks @V24039! Can you think what tests could cover this fix? I'm thinking in both the component library and the e2e cypress tests. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #3502 +/- ##
==========================================
+ Coverage 68.17% 68.33% +0.15%
==========================================
Files 442 442
Lines 14001 14037 +36
Branches 2509 2521 +12
==========================================
+ Hits 9545 9592 +47
+ Misses 4407 4396 -11
Partials 49 49 ☔ View full report in Codecov by Sentry. |
@benfurber I am sorry I don't know how to write test cases, from what I know test case for input field might cover it. Again sorry for not writing test cases. |
@V24039 So if you look at
If you have a look at Happy to give it a go? |
@benfurber Sure I can give it try and try complete it |
@V24039 Nice work on this. I can see that the linter is still failing. If you run |
@benfurber I am sorry I tried but two of test cases are failing, if possible can some please help me with this. |
Hey @V24039, apologies for not getting back to you yet. I've run out of time this week but if another maintainer doesn't get back to you over the weekend, I can give you a hand next week. |
@benfurber thank you for the response. |
Hey @V24039 I can see from the test fails that: EditComment > disables save button when comment is empty: Received element is not disabled. I think that's because To fix that, on the component find EditComment > should dispaly error message when the comment is empty: TestingLibraryElementError: Unable to find an element with the text: Comment cannot be blank. This could be because the text is broken up by multiple elements. In this case, you can provide a function for your text matcher to make your matcher more flexible. The message 'Comment cannot be blank` is only going to be called on submit, so don't you need to click the button? |
@benfurber thank you for the help The error message the validation on textarea blur, hence no submit is required to show the error message. Still trying to figure out the solution will push the code once it passes. |
@benfurber test cases related to edit comment are now getting passed |
Awesome! Thank you @V24039! What did you fancy picking up next? |
@all-contributors please add @V24039 for code |
I've put up a pull request to add @V24039! 🎉 |
@benfurber Thank you for the support and approving my PR(finally my first os contribution) Will go through the issues and try pick-up something which I am capable of. It will my contribution to project kamp😅😅 |
🎉 This PR is included in version 1.183.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
🎉 This PR is included in version 1.185.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
PR Checklist
PR Type
Description
Fixes the issue #3411 with the changes a error message "Comment cannot be blank" is displayed and the save is disabled until the user enters the comment for Edit Comment.
Git Issues
Closes #3411
Screenshots/Videos
If useful, provide screenshot or capture to highlight main changes
What happens next?
Thanks for the contribution! We try to make sure all PRs are reviewed ahead of our monthly maintainers call (first Monday of the month)
If the PR is working as intended it'll be merged and included in the next platform release, if not changes will be requested and re-reviewed once updated.
If you need more immediate feedback you can try reaching out on Discord in the Community Platform
development
channel.