-
Notifications
You must be signed in to change notification settings - Fork 139
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: Snapshot test for form message #1223
test: Snapshot test for form message #1223
Conversation
✅ Deploy Preview for sendbird-uikit-react ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
## [v3.15.5] (Oct 4th, 2024) ### Updates - Usage of template message feature: 1. Template data in message - removed: A message with valid `extendedMessagePayload.template` value will be displayed with `TemplateMessageItemBody`. - added: A message with valid `extendedMessagePayload.message_template` value will be displayed with `TemplateMessageItemBody`. 2. Container type data in message - removed: Added 'wide' width support for `MessageContent` when value exists in `message.extendedMessagePayload['ui']['container_type']` - added: Added support for template message rendering options (boolean type): `profile`, `time`, and `nickname` in `extendedMessagePayload['message_template']['container_options']`
import '../../../src/ui/Input/index.scss'; | ||
import '../../../src/ui/FormMessageItemBody/index.scss'; | ||
|
||
|
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.
Note that this testing app is currently implemented for Form testing only. However, this visual-test app is supposed to be for all visual tests not just form. For now lets just keep as is and later when we need to add another type of visual test other than form, we can refactor then.
"translationTargetLanguages": [], | ||
"messageSurvivalSeconds": -1, | ||
"plugins": [], | ||
"_poll": null |
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.
These are all random message values that form test does not care. Don't think much about it.
__visual_tests__/form/form-single.spec.ts-snapshots/104-1-chromium-darwin.png
Outdated
Show resolved
Hide resolved
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.
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.
일단 이거는 그럼, 노운 이슈로 가시고 나중에 픽스하시죵
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.
넵!
...ext-input-no-fill-one-t-d59bb-put-no-fill-and-one-chip-input-no-select-1-chromium-darwin.png
Outdated
Show resolved
Hide resolved
...-text-input-no-fill-one-t-d59bb-put-no-fill-and-one-chip-input-no-select-1-webkit-darwin.png
Outdated
Show resolved
Hide resolved
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.
LGTM, could you review this PR? @AhyoungRyu @git-babel @HoonBaek
We need at least one approval from the JS team before merging.
If you need a brief explanation before the review, please reach out to @liamcho .
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.
Please merge for today's release
Fixes NOTI-3489
Test sheet
https://docs.google.com/spreadsheets/d/16lv6-77jS00_8tJOPHLcB-7wgON4miFw-BfvUJFyUE4/edit?gid=0#gid=0
How to run snapshot test
yarn test:visual
Android results
https://github.com/sendbird/uikit-android/blob/develop/uikit/src/test/snapshots/images/com.sendbird.uikit_MessageFormSnapshotTest_test%20snapshot%20for%20message%20form_form-204.png
Changelogs