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

Happychat/Composer: refactor tests to @testing-library/react #66599

Merged
merged 3 commits into from
Aug 18, 2022

Conversation

flootr
Copy link
Contributor

@flootr flootr commented Aug 16, 2022

Proposed Changes

  • Happychat/Composer: refactor tests to @testing-library/react

Testing Instructions

  • Verify unit tests still pass

Related to #63409

@github-actions
Copy link

github-actions bot commented Aug 16, 2022

@flootr flootr requested review from a team August 16, 2022 14:33
@matticbot matticbot added the [Status] Needs Review The PR is ready for review. This also triggers e2e canary tests and wp-desktop tests automatically. label Aug 16, 2022
@matticbot
Copy link
Contributor

This PR does not affect the size of JS and CSS bundles shipped to the user's browser.

Generated by performance advisor bot at iscalypsofastyet.com.

Copy link
Member

@tyxla tyxla left a comment

Choose a reason for hiding this comment

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

This looks good overall! I've left a few questions / suggestions - LMK what you think.

client/components/happychat/test/composer.jsx Show resolved Hide resolved
client/components/happychat/test/composer.jsx Outdated Show resolved Hide resolved
client/components/happychat/test/composer.jsx Outdated Show resolved Hide resolved
@flootr flootr requested a review from tyxla August 18, 2022 08:45
Copy link
Member

@tyxla tyxla left a comment

Choose a reason for hiding this comment

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

Looks awesome, thanks! 🚢 🚀

@@ -41,8 +41,7 @@ class Composer extends Component {
};

onKeyDown = ( event ) => {
const RETURN_KEYCODE = 13;
if ( event.which === RETURN_KEYCODE ) {
if ( event.key === 'Enter' ) {
Copy link
Member

Choose a reason for hiding this comment

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

👍

@flootr flootr merged commit c6e35e2 into trunk Aug 18, 2022
@flootr flootr deleted the update/tests/happychat-composer branch August 18, 2022 10:12
@github-actions github-actions bot removed the [Status] Needs Review The PR is ready for review. This also triggers e2e canary tests and wp-desktop tests automatically. label Aug 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants