Skip to content
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

Merged
merged 30 commits into from
Oct 24, 2024

Conversation

@liamcho liamcho added the DO_NOT_MERGE Do not merge this PR yet label Sep 26, 2024
@liamcho liamcho requested a review from bang9 September 26, 2024 07:40
@liamcho liamcho self-assigned this Sep 26, 2024
@liamcho liamcho removed the request for review from bang9 September 26, 2024 07:40
@liamcho liamcho marked this pull request as draft September 26, 2024 07:40
Copy link

netlify bot commented Sep 26, 2024

Deploy Preview for sendbird-uikit-react ready!

Name Link
🔨 Latest commit 15a79ce
🔍 Latest deploy log https://app.netlify.com/sites/sendbird-uikit-react/deploys/6719d047bc9f250008d294a6
😎 Deploy Preview https://deploy-preview-1223--sendbird-uikit-react.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

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';


Copy link
Contributor Author

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
Copy link
Contributor Author

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.

@liamcho liamcho requested review from bang9, HoonBaek and AhyoungRyu and removed request for HoonBaek October 10, 2024 07:16
@liamcho liamcho added v3.15.6 and removed DO_NOT_MERGE Do not merge this PR yet labels Oct 10, 2024
@liamcho liamcho requested a review from HoonBaek October 10, 2024 07:17
@liamcho liamcho changed the title [test] snapshot test setup (draft) test: Snapshot test for form message Oct 10, 2024
@liamcho liamcho marked this pull request as ready for review October 11, 2024 08:20
.circleci/config.yml Outdated Show resolved Hide resolved
Copy link
Contributor Author

@liamcho liamcho Oct 14, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

input element 의 line height 가 safari에서 적용이 안되는거 같습니다. 같은 변경해도 소용이 없네요. height 는 fit-content 이여야하기 때문에 text size 를 올리던지 다른 방법을 찾아야 할 것 같습니다.

Screenshot 2024-10-14 at 3 39 36 PM

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

일단 이거는 그럼, 노운 이슈로 가시고 나중에 픽스하시죵

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

넵!

playwright.config.ts Outdated Show resolved Hide resolved
@liamcho liamcho requested a review from bang9 October 15, 2024 01:46
@liamcho liamcho requested a review from bang9 October 15, 2024 06:09
Copy link
Contributor

@bang9 bang9 left a 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 .

@bang9 bang9 requested a review from a team October 22, 2024 02:17
Copy link
Contributor

@HoonBaek HoonBaek left a 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

@liamcho liamcho merged commit 2fb0d7c into main Oct 24, 2024
10 checks passed
@liamcho liamcho deleted the test/NOTI-3489-snapshot-tests-for-message-template branch October 24, 2024 05:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants