-
Notifications
You must be signed in to change notification settings - Fork 219
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 #1271 Add slack_file object to image block / block element classes #1272
Conversation
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #1272 +/- ##
============================================
- Coverage 74.36% 74.30% -0.06%
- Complexity 4125 4128 +3
============================================
Files 443 444 +1
Lines 13080 13102 +22
Branches 1323 1323
============================================
+ Hits 9727 9736 +9
- Misses 2580 2594 +14
+ Partials 773 772 -1 ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for tackling this! The tests look extensive.
assertThat(deletion.getError(), is(nullValue())); | ||
Thread.sleep(500L); | ||
|
||
ChatPostMessageResponse response = client.chatPostMessage(r -> r |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I suppose there is no way to validate this message correctly displays the image?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The only approach would be to check if there are the blocks in the message property in the response, but it sounds repetitive to me. Validating whether there is no error code such as invalid_blocks in the response (like the current test code does) should be good enough this time.
Thanks for the quick review! |
This pull request resolves #1271
Category (place an
x
in each of the[ ]
)Requirements
Please read the Contributing guidelines and Code of Conduct before creating this issue or pull request. By submitting, you agree to those rules.