-
Notifications
You must be signed in to change notification settings - Fork 69
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 jest tests due to daylight saving #5065
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…quick fix to unblock PRs from getting merged.
Size Change: 0 B Total Size: 1.01 MB ℹ️ View Unchanged
|
Jinksi
approved these changes
Nov 8, 2022
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.
Looks like a good temporary solution @shendy-a8c. 👍 GH checks are now passing.
Ideally, we can address #5063 before daylight savings changes again 😝
shendy-a8c
added a commit
that referenced
this pull request
Nov 9, 2022
* Add new GitHub workflows to manage pre-release and release packages (#4925) * Fix regex to check format of tag for a pre-release (#4947) * Pass the "Display prices during cart and checkout" option to WooPay (#4929) * Pass the 'woocommerce_tax_display_cart' option from the merchant's store to WooPay * Add changelog entry * Create an inbox note for Stripe Link set-up (#4932) * Add StripeLink set up note to WooCommerce inbox * Adding manual option to deposit schedule selection (#4715) * Adding manual option to deposit schedule selection * Polish deposits settings radio UI. * Lower case 'deposits'. * Changelog for manual deposits setting. * Unit test for automatic and manual deposit radios. * Add manual deposits confirmation modal. * Update modal styles. * Add dynamic minimum deposit amount. * Rework the deposit schedule settings as per the recent design changes. * Fix tests. * Additional design changes * Update changelog entry. Co-authored-by: Shendy Kurnia <shendy.kurnia@a8c.com> Co-authored-by: James Allan <james.allan@automattic.com> Co-authored-by: Chris Aprea <chris.aprea@automattic.com> Co-authored-by: Chris Aprea <aprea@users.noreply.github.com> Co-authored-by: Shendy <73803630+shendy-a8c@users.noreply.github.com> * Add dependabot.yml to enable automatic creation of PRs (#4969) * Add event when skipped the platform checkout (#4944) * Add event when skipped the platform checkout * Add changelog entry * Switch to `@woocommerce/dependency-extraction-webpack-plugin` (#4281) * Switch to @woocommerce/dependency-extraction-webpack-plugin From @wordpress/dependency-extraction-webpack-plugin and remove any `@woocommerce/*` entry from the configuration. * Update renovate documentation * Add changelog entry * Drop IE11 support (#4948) * Drop IE11 support Updating @wordpress/browserslist-config to the latest version * Add changelog entry * Adjust texts and links in WC admin express checkout section (#4852) * add link payment method for capture later option (#4822) * Remove unnecessary babel plugins (#4952) * Drop IE11 support Updating @wordpress/browserslist-config to the latest version * Add changelog entry * Remove unnecessary babel plugins After dropping IE11 as a target we don't need them anymore. * Remove `.babelrc` as we're using `babel.config.js` * Add changelog entry * Use individual Gridicons imports (#4967) * Create a custom ESLint rule to prevent the import of whole Gridicons * Update gridicons TS declaration And move it to a new file in the root of client, as it is not tied to `deposits-information` * Replace every full gridicons import with individual ones * Update affected test snapshots Mocking icons components to make it clear * Add changelog entry * Update lodash to version 4.17.21 (#4963) * Update lodash to version 4.17.21 * Add changelog * Update some workflow files to use an env variable for L-2 versions (#4984) * Update husky to v 8.0.1 (#4941) * Update husky to v 8.0.1 * Update changelog * Remove gitignore file, unnecessary as of v 7.0.0 * Update renovate.md dependency list * Update .prettierignore to ignore renovate.md * Add newline at the end of prettierignore file. * Refactor WC_Payment_Gateway_WCPay Part 1 (#4850) * fixed deprecated version * fixed deprecated version warning * Add platform checkout signature endpoint (#4927) * Update `woocommerce-payments` package version number in `package-lock.json` (#4991) * Update `woocommerce-payments` package version number in `package-lock.json`. * Add changelog entry. Co-authored-by: Chris Aprea <aprea@users.noreply.github.com> * Hide upload buttons, amend placeholders in submitted evidence form (#4840) * Change variable name for clarity * Change DisputeFileUpload to FileUploadControlProps * Update WC Pay * Add evidence details to interface * Add notice and hide buttons * Show notice about read-only status of dispute details. Hide upload buttons * Update test snapshot * Update WC Pay * Replace button with file name or no file message * Manage empty fields Text indication for fields that are empty, and hide message box for empty text areas. * Update WC Pay * update package.json * Hide section help text * Escaped a few strings for i18n. * Minor correction and update test snapshot * Remove notice when isLoading * Update WC Pay * update package.json * Refactor based on review recommendations. * Minor refactor based on review * Update test snapshot * Minor refactor Co-authored-by: Nagesh Pai <nagesh.pai@automattic.com> * Update subscriptions-core version 2.4.0 (#5009) * Bump subscriptions-core version in WCPay and attach changelog entries * Update changelog/subscriptions-core-2.4.0-2 Co-authored-by: Eric Jinks <3147296+Jinksi@users.noreply.github.com> Co-authored-by: Eric Jinks <3147296+Jinksi@users.noreply.github.com> * Add filter to record wcpay server api response time (#5001) * Add filter to record wcpay server api response time * Add changelog entry * Prevent auto redirection for different customer (#4890) * set email param in `login-session` iframe src * show loader if email field has valid email while checking for login session * Update priority for Multi-Currency filters for prices and currency (#4939) * Update priority for Multi-Currency filters for prices and currency to later priority to avoid plugin conflicts * Update changelog for clarity, and to trigger GH actions. * Update deprecated interpolate-components to new @automattic/interpolate-components (#4965) * Update deprecated interpolate-components to new @automattic/interpolate-components * Update changelog. * Update renovate.md * Add dependencies.md to replace renovate.md (#5013) * Add dependencies.md to replace renovate.md * Formatting changes. * Revert formatting of tables to what was done in renovate.md * Remove typo from renovate.md. * Add woopay express checkout feature flag (#5014) * Update the balance component header (#5029) * WIP. * Update the balance component header. * Add changelog Co-authored-by: Chris Aprea <aprea@users.noreply.github.com> * Authorizations: Replace mocked data in reducer/store with actual fetching + add tests (#4949) * Update TypeScript type signature for receiveAuthorizations reducer * Add new store actions for authorizations errors * Adjust useAuthorizations hook to take advantage of filters This will push the function to retry whenever a filter changes * Import the correct Query type * Add getAuthorizationsState * Get data with newly created function getAuthorizationsState * Add getAuthorizationsSummaryForQuery function * Add authorizations summary helper functions * Add error summary hook * Adjust authorizations reducer with new data schema * replace mocked data with actual API fetch * replace mocked summary data with actual api fetch * add reducer tests * add resolvers tests * add selectors tests * Add changelog * Fix eslint weird errors * Fix linting warnings * use passed query instead of re-defining it * remove unused data in reducer parts * extract data to constants * Use ?? instead of || * strongly type authorizations reducer * Fix tests after changes * Update Stripe Link inbox notification wording (#5030) * Update Stripe Link inbox notification wording * Add watch mode to php unit tests (#4935) * Add phpunit-watcher composer dependency * Add watch flag to run-tests script phpunit-watcher is used instead of regular phpunit in case of passing -w flag as a parameter. New test:php-watch npm script added to package.json * Fix PHP unit tests watcher script Update tests documentation to include new npm script. * Add changelog entry * Increase phpunit-watcher timeout and disable phpunit-watcher notifications Currently using 600 (10 minutes) as it depends on the developer's machine. This value can be changed as necessary. * Fix composer.lock * Fix error that would happen when visiting the plugins page (#5034) * Prevent proceeding to WooPay's checkout on previews (#5016) * Prevent proceeding to WooPay checkout when in the customize.php preview * Prevent proceeding to WooPay checkout when previewing a page * Add changelog entry * Fix currency switcher block padding (#5011) * Remove fixed padding on the block editor Not required anymore after WC 6.6.0 and makes the select looks bad while editing it * Add changelog entry * Removing merge left-overs * Merge fix 2 * Fix tests for WP 6.1 (#5049) * Adding the missing mock WC_Payments_Token_Service * Making sure mock orders have IDs for the webhook processing service * Add missing props to make test_capture_charge_metadata work within WC_Payment_Gateway_WCPay_Test. * Changelog * Formatting the webhook processing service test * Removing the mock token service in favor of local varialbe * Creating mock_order in set-up * New Tracks event on KYC modal open (#5004) * Adding the new event * Update changelog * Update Dockerfile image to wordpress:php7.4 (#4943) and add changelog file * Update Subscriptions Core composer package to 2.4.1 (#5036) * Bump version of subscriptions-core to 2.4.1 * Update the existing changelog to the latest subscriptions-core version * add changelog entry Co-authored-by: Jesse Pearson <jessepearson@users.noreply.github.com> * Replace the deprecated wcs_renewal_order_meta_query with a new hook (#5052) * Replace the deprecated wcs_renewal_order_meta_query with a new hook * Add changelog * Add the missing s * Update Subscriptions Core to 2.5.1 (#5053) * Update Subscriptions Core version to 2.5.0 * Add changelog entry for subscriptions-core version bump * Add changelog entries for changes being introduced with new subscriptions-core version * Bump subscriptions-core version to 2.5.1 * Update changelog for subscriptions core version * Rename changelog file to fix typo Co-authored-by: James Allan <james.allan@automattic.com> * Add new workflow for post-release updates (#5003) * Revert "Adding manual option to deposit schedule selection (#4715)" (#5050) * Revert "Adding manual option to deposit schedule selection (#4715)" This reverts commit de82c8f. # Conflicts: # client/settings/deposits/index.js * Add changelog. Co-authored-by: Chris Aprea <aprea@users.noreply.github.com> Co-authored-by: Shendy <73803630+shendy-a8c@users.noreply.github.com> * [Authorizations] Wire Uncaptured Transactions screen to API data (#4982) This change adds real data to the Uncaptured transactions screen (still behind a flag): - Get authorizations data from the API and displays it in a table - Make each row clickable and redirect to the payment details for this specific payment - Displays a summary in the end of the table - Displays total amount of authorizations (only if the same currency - multiple currency filtering is out of scope) Co-authored-by: Miguel Gasca <miguel.gasca@automattic.com> * [Authorizations] [Integration] Capture authorizations from table (#4962) This change adds capture authorization support from the list of authorizations: - Adds capture_authorization endpoint, used by front-end components to reach the capture endpoint in the server - Adds CaptureAuthorizationButton React component, used in the list of authorizations - Front-end data layer and UI * Add Capture Charge button on payment details page (#5006) This change adds capture authorization support from the payment details page: - Modifies CaptureAuthorizationButton React component to support additional props (isSecondary, isSmall) to reuse it on payment details page - Front-end data layer and UI * Refund Confirmation modal on order status change (#4987) * Added Confirmation modal and WCPay Refund on Order Status change Changing the status from the dropdown on Edit Order screen was not triggering a WCPay refund. With these changes, we add a modal, and if the action is confirmed, a WCPay refund is triggered Co-authored-by: Jessy P <jessy.pappachan@automattic.com> * Fix jest tests due to daylight saving (#5065) * Since recent daylight saving change, some jest tests fail. This is a quick fix to unblock PRs from getting merged. * Changelog. * Fetch authorization data only if the payment is marked for manual capture (#5060) * Fetch authorization data only if the payment is marked for manual capture * Add changelog Co-authored-by: Shendy <73803630+shendy-a8c@users.noreply.github.com> * Write changelog. Co-authored-by: Jordan Bordonado <28830738+jbordonado@users.noreply.github.com> Co-authored-by: Danae Millan <41606954+a-danae@users.noreply.github.com> Co-authored-by: Cvetan Cvetanov <cvetan.cvetanov@automattic.com> Co-authored-by: Zvonimir Maglica <zvonimirmaglica4@gmail.com> Co-authored-by: bruce aldridge <bruce.aldridge@gmail.com> Co-authored-by: James Allan <james.allan@automattic.com> Co-authored-by: Chris Aprea <chris.aprea@automattic.com> Co-authored-by: Chris Aprea <aprea@users.noreply.github.com> Co-authored-by: Jesse Pearson <jessepearson@users.noreply.github.com> Co-authored-by: Hsing-yu Flowers <hsingyuc.7@gmail.com> Co-authored-by: Ismael Martín Alabarce <info@ismaeld.com> Co-authored-by: Dan Paun <82826872+dpaun1985@users.noreply.github.com> Co-authored-by: leonardo lopes de albuquerque <leonardo.albuquerque@automattic.com> Co-authored-by: Brian Borman <68524302+bborman22@users.noreply.github.com> Co-authored-by: Chris Aprea <1527164+aprea@users.noreply.github.com> Co-authored-by: Nagesh Pai <4162931+nagpai@users.noreply.github.com> Co-authored-by: Nagesh Pai <nagesh.pai@automattic.com> Co-authored-by: Matt Allan <matt.allan@automattic.com> Co-authored-by: Eric Jinks <3147296+Jinksi@users.noreply.github.com> Co-authored-by: Mayisha <33387139+Mayisha@users.noreply.github.com> Co-authored-by: Ahmed <ahmed.el.azzabi@automattic.com> Co-authored-by: Eduardo Pieretti Umpierre <eduardoumpierre@hotmail.com> Co-authored-by: Radoslav Georgiev <rageorgiev@gmail.com> Co-authored-by: Daniel Mallory <daniel.mallory@automattic.com> Co-authored-by: Allie Mims <60988591+allie500@users.noreply.github.com> Co-authored-by: Miguel Gasca <miguel.gasca@automattic.com> Co-authored-by: jessy <32092402+jessy-p@users.noreply.github.com> Co-authored-by: Jessy P <jessy.pappachan@automattic.com>
timur27
added a commit
that referenced
this pull request
Nov 16, 2022
* Update WC Pay * update package.json * Revert "update package.json" This reverts commit 380fd62. * Revert "Update WC Pay" This reverts commit ce1067c. * Fix otp modal when auto redirecting to platform checkout (#4859) * Add authorizations-related endpoints (#4775) * add authorizations endpoint controller * add new controller to path * add new functions to pull data from server * add tests for authorizations * fix small typo in transactions test description * add type to function params * add changelog * Strict check in test using assertSame * add strict types to functions * Inline error code in test * Add KYC additional info modal and notice banner (#4928) * Add KYC additional info modal and notice banner * Fix for the button link styling * Fixes to the modal styling and open/close logic * Remove webpack files added in patch * revert change made for HMR accidentally added to this branch * Revert changes made to package files * Revert changes made to package files * Revert changes made to package files * Add changelog * Adding test for info modal * Remove unused variables * Styling updates to better match designs * Add HMR and split webpack configuration (#4510) * Prepare dependencies for HMR Update `@wordpress/dependency-extraction-webpack-plugin` to support react refresh extraction and install missing dependencies. * Split webpack config into shared, production, and development Adding HMR requires a bunch of settings that will clutter our settings, having them separated will make updates easier. * Add HMR webpack configuration Conditionally based on WEBPACK_SERVE from env * Load runtime script for both frontend and admin area To make HMR work while using multiple entries in the same page we need a single runtime. * Add `npm run hmr` command and instructions * Load runtime only on admin for now * Add changelog entry * Update package lock to v2 * Add more details to the `md` file Co-authored-by: Dat Hoang <htdat@users.noreply.github.com> * Save tokens for Link payment method (#4781) Co-authored-by: Dan Paun <dan.paun@automattic.com> * Fix platform checkout store logo preview (#4814) * Declare HPOS incompatibility (#4921) * Added code to declare WCPay incompatible with COT Co-authored-by: Jessy P <jessy.pappachan@automattic.com> * Add new GitHub workflows to manage pre-release and release packages (#4925) * Fix regex to check format of tag for a pre-release (#4947) * Pass the "Display prices during cart and checkout" option to WooPay (#4929) * Pass the 'woocommerce_tax_display_cart' option from the merchant's store to WooPay * Add changelog entry * Create an inbox note for Stripe Link set-up (#4932) * Add StripeLink set up note to WooCommerce inbox * Revert "Support Platform Checkout from Checkout Blocks (#4611)" This reverts commit 6dba845. * Added changelog entries * Product version bump update * Adding manual option to deposit schedule selection (#4715) * Adding manual option to deposit schedule selection * Polish deposits settings radio UI. * Lower case 'deposits'. * Changelog for manual deposits setting. * Unit test for automatic and manual deposit radios. * Add manual deposits confirmation modal. * Update modal styles. * Add dynamic minimum deposit amount. * Rework the deposit schedule settings as per the recent design changes. * Fix tests. * Additional design changes * Update changelog entry. Co-authored-by: Shendy Kurnia <shendy.kurnia@a8c.com> Co-authored-by: James Allan <james.allan@automattic.com> Co-authored-by: Chris Aprea <chris.aprea@automattic.com> Co-authored-by: Chris Aprea <aprea@users.noreply.github.com> Co-authored-by: Shendy <73803630+shendy-a8c@users.noreply.github.com> * Add dependabot.yml to enable automatic creation of PRs (#4969) * Add event when skipped the platform checkout (#4944) * Add event when skipped the platform checkout * Add changelog entry * Switch to `@woocommerce/dependency-extraction-webpack-plugin` (#4281) * Switch to @woocommerce/dependency-extraction-webpack-plugin From @wordpress/dependency-extraction-webpack-plugin and remove any `@woocommerce/*` entry from the configuration. * Update renovate documentation * Add changelog entry * Drop IE11 support (#4948) * Drop IE11 support Updating @wordpress/browserslist-config to the latest version * Add changelog entry * Adjust texts and links in WC admin express checkout section (#4852) * add link payment method for capture later option (#4822) * Remove unnecessary babel plugins (#4952) * Drop IE11 support Updating @wordpress/browserslist-config to the latest version * Add changelog entry * Remove unnecessary babel plugins After dropping IE11 as a target we don't need them anymore. * Remove `.babelrc` as we're using `babel.config.js` * Add changelog entry * Use individual Gridicons imports (#4967) * Create a custom ESLint rule to prevent the import of whole Gridicons * Update gridicons TS declaration And move it to a new file in the root of client, as it is not tied to `deposits-information` * Replace every full gridicons import with individual ones * Update affected test snapshots Mocking icons components to make it clear * Add changelog entry * Update lodash to version 4.17.21 (#4963) * Update lodash to version 4.17.21 * Add changelog * Update some workflow files to use an env variable for L-2 versions (#4984) * Update husky to v 8.0.1 (#4941) * Update husky to v 8.0.1 * Update changelog * Remove gitignore file, unnecessary as of v 7.0.0 * Update renovate.md dependency list * Update .prettierignore to ignore renovate.md * Add newline at the end of prettierignore file. * Refactor WC_Payment_Gateway_WCPay Part 1 (#4850) * fixed deprecated version * fixed deprecated version warning * Add platform checkout signature endpoint (#4927) * Update `woocommerce-payments` package version number in `package-lock.json` (#4991) * Update `woocommerce-payments` package version number in `package-lock.json`. * Add changelog entry. Co-authored-by: Chris Aprea <aprea@users.noreply.github.com> * Hide upload buttons, amend placeholders in submitted evidence form (#4840) * Change variable name for clarity * Change DisputeFileUpload to FileUploadControlProps * Update WC Pay * Add evidence details to interface * Add notice and hide buttons * Show notice about read-only status of dispute details. Hide upload buttons * Update test snapshot * Update WC Pay * Replace button with file name or no file message * Manage empty fields Text indication for fields that are empty, and hide message box for empty text areas. * Update WC Pay * update package.json * Hide section help text * Escaped a few strings for i18n. * Minor correction and update test snapshot * Remove notice when isLoading * Update WC Pay * update package.json * Refactor based on review recommendations. * Minor refactor based on review * Update test snapshot * Minor refactor Co-authored-by: Nagesh Pai <nagesh.pai@automattic.com> * Update subscriptions-core version 2.4.0 (#5009) * Bump subscriptions-core version in WCPay and attach changelog entries * Update changelog/subscriptions-core-2.4.0-2 Co-authored-by: Eric Jinks <3147296+Jinksi@users.noreply.github.com> Co-authored-by: Eric Jinks <3147296+Jinksi@users.noreply.github.com> * Add filter to record wcpay server api response time (#5001) * Add filter to record wcpay server api response time * Add changelog entry * Prevent auto redirection for different customer (#4890) * set email param in `login-session` iframe src * show loader if email field has valid email while checking for login session * Update priority for Multi-Currency filters for prices and currency (#4939) * Update priority for Multi-Currency filters for prices and currency to later priority to avoid plugin conflicts * Update changelog for clarity, and to trigger GH actions. * Update deprecated interpolate-components to new @automattic/interpolate-components (#4965) * Update deprecated interpolate-components to new @automattic/interpolate-components * Update changelog. * Update renovate.md * Add dependencies.md to replace renovate.md (#5013) * Add dependencies.md to replace renovate.md * Formatting changes. * Revert formatting of tables to what was done in renovate.md * Remove typo from renovate.md. * Add woopay express checkout feature flag (#5014) * Update the balance component header (#5029) * WIP. * Update the balance component header. * Add changelog Co-authored-by: Chris Aprea <aprea@users.noreply.github.com> * Authorizations: Replace mocked data in reducer/store with actual fetching + add tests (#4949) * Update TypeScript type signature for receiveAuthorizations reducer * Add new store actions for authorizations errors * Adjust useAuthorizations hook to take advantage of filters This will push the function to retry whenever a filter changes * Import the correct Query type * Add getAuthorizationsState * Get data with newly created function getAuthorizationsState * Add getAuthorizationsSummaryForQuery function * Add authorizations summary helper functions * Add error summary hook * Adjust authorizations reducer with new data schema * replace mocked data with actual API fetch * replace mocked summary data with actual api fetch * add reducer tests * add resolvers tests * add selectors tests * Add changelog * Fix eslint weird errors * Fix linting warnings * use passed query instead of re-defining it * remove unused data in reducer parts * extract data to constants * Use ?? instead of || * strongly type authorizations reducer * Fix tests after changes * Update Stripe Link inbox notification wording (#5030) * Update Stripe Link inbox notification wording * Add watch mode to php unit tests (#4935) * Add phpunit-watcher composer dependency * Add watch flag to run-tests script phpunit-watcher is used instead of regular phpunit in case of passing -w flag as a parameter. New test:php-watch npm script added to package.json * Fix PHP unit tests watcher script Update tests documentation to include new npm script. * Add changelog entry * Increase phpunit-watcher timeout and disable phpunit-watcher notifications Currently using 600 (10 minutes) as it depends on the developer's machine. This value can be changed as necessary. * Fix composer.lock * Fix error that would happen when visiting the plugins page (#5034) * Prevent proceeding to WooPay's checkout on previews (#5016) * Prevent proceeding to WooPay checkout when in the customize.php preview * Prevent proceeding to WooPay checkout when previewing a page * Add changelog entry * Fix currency switcher block padding (#5011) * Remove fixed padding on the block editor Not required anymore after WC 6.6.0 and makes the select looks bad while editing it * Add changelog entry * Removing merge left-overs * Merge fix 2 * Fix tests for WP 6.1 (#5049) * Adding the missing mock WC_Payments_Token_Service * Making sure mock orders have IDs for the webhook processing service * Add missing props to make test_capture_charge_metadata work within WC_Payment_Gateway_WCPay_Test. * Changelog * Formatting the webhook processing service test * Removing the mock token service in favor of local varialbe * Creating mock_order in set-up * New Tracks event on KYC modal open (#5004) * Adding the new event * Update changelog * Update Dockerfile image to wordpress:php7.4 (#4943) and add changelog file * Update Subscriptions Core composer package to 2.4.1 (#5036) * Bump version of subscriptions-core to 2.4.1 * Update the existing changelog to the latest subscriptions-core version * add changelog entry Co-authored-by: Jesse Pearson <jessepearson@users.noreply.github.com> * Replace the deprecated wcs_renewal_order_meta_query with a new hook (#5052) * Replace the deprecated wcs_renewal_order_meta_query with a new hook * Add changelog * Add the missing s * Update Subscriptions Core to 2.5.1 (#5053) * Update Subscriptions Core version to 2.5.0 * Add changelog entry for subscriptions-core version bump * Add changelog entries for changes being introduced with new subscriptions-core version * Bump subscriptions-core version to 2.5.1 * Update changelog for subscriptions core version * Rename changelog file to fix typo Co-authored-by: James Allan <james.allan@automattic.com> * Add new workflow for post-release updates (#5003) * Revert "Adding manual option to deposit schedule selection (#4715)" (#5050) * Revert "Adding manual option to deposit schedule selection (#4715)" This reverts commit de82c8f. # Conflicts: # client/settings/deposits/index.js * Add changelog. Co-authored-by: Chris Aprea <aprea@users.noreply.github.com> Co-authored-by: Shendy <73803630+shendy-a8c@users.noreply.github.com> * [Authorizations] Wire Uncaptured Transactions screen to API data (#4982) This change adds real data to the Uncaptured transactions screen (still behind a flag): - Get authorizations data from the API and displays it in a table - Make each row clickable and redirect to the payment details for this specific payment - Displays a summary in the end of the table - Displays total amount of authorizations (only if the same currency - multiple currency filtering is out of scope) Co-authored-by: Miguel Gasca <miguel.gasca@automattic.com> * [Authorizations] [Integration] Capture authorizations from table (#4962) This change adds capture authorization support from the list of authorizations: - Adds capture_authorization endpoint, used by front-end components to reach the capture endpoint in the server - Adds CaptureAuthorizationButton React component, used in the list of authorizations - Front-end data layer and UI * Add Capture Charge button on payment details page (#5006) This change adds capture authorization support from the payment details page: - Modifies CaptureAuthorizationButton React component to support additional props (isSecondary, isSmall) to reuse it on payment details page - Front-end data layer and UI * Refund Confirmation modal on order status change (#4987) * Added Confirmation modal and WCPay Refund on Order Status change Changing the status from the dropdown on Edit Order screen was not triggering a WCPay refund. With these changes, we add a modal, and if the action is confirmed, a WCPay refund is triggered Co-authored-by: Jessy P <jessy.pappachan@automattic.com> * Fix jest tests due to daylight saving (#5065) * Since recent daylight saving change, some jest tests fail. This is a quick fix to unblock PRs from getting merged. * Changelog. * Fetch authorization data only if the payment is marked for manual capture (#5060) * Fetch authorization data only if the payment is marked for manual capture * Add changelog Co-authored-by: Shendy <73803630+shendy-a8c@users.noreply.github.com> * Add uncaptured transactions count badge to Transactions menu (#5046) * Add badge for uncaptured transactions count in Payments menu This is a basic implementation without caching, which will come a bit later. * Display badge only when manual capture is enabled This will save us a tonne of unnecessary API calls to get authorizations count. * Cache authorization summary data We use Database_Cache to store authorization summary data (including uncaptured count) as an option in database. Justification for caching: * Uncaptured transactions count is fetched via API when the Payments menu is created in WP Admin, which is essentially on each page load of WP Admin. * Not all merchants will receive multiple orders every minute. * Invalidate auth summary cache based on webhook events * Add changelog * Invalidate cache based on intent rather than charge events This will be things consistent with server. Besides, charge suceeded and captured events are not currently being forwarded to the plugin. * Remove duplicate badge format constant * Add count badge to Uncaptured tab button Without a proper support for badges in WP's TabPanel component, implementing this barebones but functional approach. * Fix duplicate import that came with merge with develop * Add tests for badge in Transactions menu item * Remove count badge from Uncaptured tab button We'll revisit this later when we have a better solution. * Hide the badge under a feature flag * Minor refactors for stricter typing * Remove empty line between variable and condition * Fix tests breaking because of feature flag * Update changelog Co-authored-by: Miguel Gasca <miguel.gasca@automattic.com> * Add PHPCS object operator indent rule (#5055) * Add phpcs `PEAR.WhiteSpace.ObjectOperatorIndent` rule To be consistent with WCPay server and avoid commits with different indentations. * Run PHPCBF to fix errors * Write changelog. * Release/5.0.0 (#5077) * Add new GitHub workflows to manage pre-release and release packages (#4925) * Fix regex to check format of tag for a pre-release (#4947) * Pass the "Display prices during cart and checkout" option to WooPay (#4929) * Pass the 'woocommerce_tax_display_cart' option from the merchant's store to WooPay * Add changelog entry * Create an inbox note for Stripe Link set-up (#4932) * Add StripeLink set up note to WooCommerce inbox * Adding manual option to deposit schedule selection (#4715) * Adding manual option to deposit schedule selection * Polish deposits settings radio UI. * Lower case 'deposits'. * Changelog for manual deposits setting. * Unit test for automatic and manual deposit radios. * Add manual deposits confirmation modal. * Update modal styles. * Add dynamic minimum deposit amount. * Rework the deposit schedule settings as per the recent design changes. * Fix tests. * Additional design changes * Update changelog entry. Co-authored-by: Shendy Kurnia <shendy.kurnia@a8c.com> Co-authored-by: James Allan <james.allan@automattic.com> Co-authored-by: Chris Aprea <chris.aprea@automattic.com> Co-authored-by: Chris Aprea <aprea@users.noreply.github.com> Co-authored-by: Shendy <73803630+shendy-a8c@users.noreply.github.com> * Add dependabot.yml to enable automatic creation of PRs (#4969) * Add event when skipped the platform checkout (#4944) * Add event when skipped the platform checkout * Add changelog entry * Switch to `@woocommerce/dependency-extraction-webpack-plugin` (#4281) * Switch to @woocommerce/dependency-extraction-webpack-plugin From @wordpress/dependency-extraction-webpack-plugin and remove any `@woocommerce/*` entry from the configuration. * Update renovate documentation * Add changelog entry * Drop IE11 support (#4948) * Drop IE11 support Updating @wordpress/browserslist-config to the latest version * Add changelog entry * Adjust texts and links in WC admin express checkout section (#4852) * add link payment method for capture later option (#4822) * Remove unnecessary babel plugins (#4952) * Drop IE11 support Updating @wordpress/browserslist-config to the latest version * Add changelog entry * Remove unnecessary babel plugins After dropping IE11 as a target we don't need them anymore. * Remove `.babelrc` as we're using `babel.config.js` * Add changelog entry * Use individual Gridicons imports (#4967) * Create a custom ESLint rule to prevent the import of whole Gridicons * Update gridicons TS declaration And move it to a new file in the root of client, as it is not tied to `deposits-information` * Replace every full gridicons import with individual ones * Update affected test snapshots Mocking icons components to make it clear * Add changelog entry * Update lodash to version 4.17.21 (#4963) * Update lodash to version 4.17.21 * Add changelog * Update some workflow files to use an env variable for L-2 versions (#4984) * Update husky to v 8.0.1 (#4941) * Update husky to v 8.0.1 * Update changelog * Remove gitignore file, unnecessary as of v 7.0.0 * Update renovate.md dependency list * Update .prettierignore to ignore renovate.md * Add newline at the end of prettierignore file. * Refactor WC_Payment_Gateway_WCPay Part 1 (#4850) * fixed deprecated version * fixed deprecated version warning * Add platform checkout signature endpoint (#4927) * Update `woocommerce-payments` package version number in `package-lock.json` (#4991) * Update `woocommerce-payments` package version number in `package-lock.json`. * Add changelog entry. Co-authored-by: Chris Aprea <aprea@users.noreply.github.com> * Hide upload buttons, amend placeholders in submitted evidence form (#4840) * Change variable name for clarity * Change DisputeFileUpload to FileUploadControlProps * Update WC Pay * Add evidence details to interface * Add notice and hide buttons * Show notice about read-only status of dispute details. Hide upload buttons * Update test snapshot * Update WC Pay * Replace button with file name or no file message * Manage empty fields Text indication for fields that are empty, and hide message box for empty text areas. * Update WC Pay * update package.json * Hide section help text * Escaped a few strings for i18n. * Minor correction and update test snapshot * Remove notice when isLoading * Update WC Pay * update package.json * Refactor based on review recommendations. * Minor refactor based on review * Update test snapshot * Minor refactor Co-authored-by: Nagesh Pai <nagesh.pai@automattic.com> * Update subscriptions-core version 2.4.0 (#5009) * Bump subscriptions-core version in WCPay and attach changelog entries * Update changelog/subscriptions-core-2.4.0-2 Co-authored-by: Eric Jinks <3147296+Jinksi@users.noreply.github.com> Co-authored-by: Eric Jinks <3147296+Jinksi@users.noreply.github.com> * Add filter to record wcpay server api response time (#5001) * Add filter to record wcpay server api response time * Add changelog entry * Prevent auto redirection for different customer (#4890) * set email param in `login-session` iframe src * show loader if email field has valid email while checking for login session * Update priority for Multi-Currency filters for prices and currency (#4939) * Update priority for Multi-Currency filters for prices and currency to later priority to avoid plugin conflicts * Update changelog for clarity, and to trigger GH actions. * Update deprecated interpolate-components to new @automattic/interpolate-components (#4965) * Update deprecated interpolate-components to new @automattic/interpolate-components * Update changelog. * Update renovate.md * Add dependencies.md to replace renovate.md (#5013) * Add dependencies.md to replace renovate.md * Formatting changes. * Revert formatting of tables to what was done in renovate.md * Remove typo from renovate.md. * Add woopay express checkout feature flag (#5014) * Update the balance component header (#5029) * WIP. * Update the balance component header. * Add changelog Co-authored-by: Chris Aprea <aprea@users.noreply.github.com> * Authorizations: Replace mocked data in reducer/store with actual fetching + add tests (#4949) * Update TypeScript type signature for receiveAuthorizations reducer * Add new store actions for authorizations errors * Adjust useAuthorizations hook to take advantage of filters This will push the function to retry whenever a filter changes * Import the correct Query type * Add getAuthorizationsState * Get data with newly created function getAuthorizationsState * Add getAuthorizationsSummaryForQuery function * Add authorizations summary helper functions * Add error summary hook * Adjust authorizations reducer with new data schema * replace mocked data with actual API fetch * replace mocked summary data with actual api fetch * add reducer tests * add resolvers tests * add selectors tests * Add changelog * Fix eslint weird errors * Fix linting warnings * use passed query instead of re-defining it * remove unused data in reducer parts * extract data to constants * Use ?? instead of || * strongly type authorizations reducer * Fix tests after changes * Update Stripe Link inbox notification wording (#5030) * Update Stripe Link inbox notification wording * Add watch mode to php unit tests (#4935) * Add phpunit-watcher composer dependency * Add watch flag to run-tests script phpunit-watcher is used instead of regular phpunit in case of passing -w flag as a parameter. New test:php-watch npm script added to package.json * Fix PHP unit tests watcher script Update tests documentation to include new npm script. * Add changelog entry * Increase phpunit-watcher timeout and disable phpunit-watcher notifications Currently using 600 (10 minutes) as it depends on the developer's machine. This value can be changed as necessary. * Fix composer.lock * Fix error that would happen when visiting the plugins page (#5034) * Prevent proceeding to WooPay's checkout on previews (#5016) * Prevent proceeding to WooPay checkout when in the customize.php preview * Prevent proceeding to WooPay checkout when previewing a page * Add changelog entry * Fix currency switcher block padding (#5011) * Remove fixed padding on the block editor Not required anymore after WC 6.6.0 and makes the select looks bad while editing it * Add changelog entry * Removing merge left-overs * Merge fix 2 * Fix tests for WP 6.1 (#5049) * Adding the missing mock WC_Payments_Token_Service * Making sure mock orders have IDs for the webhook processing service * Add missing props to make test_capture_charge_metadata work within WC_Payment_Gateway_WCPay_Test. * Changelog * Formatting the webhook processing service test * Removing the mock token service in favor of local varialbe * Creating mock_order in set-up * New Tracks event on KYC modal open (#5004) * Adding the new event * Update changelog * Update Dockerfile image to wordpress:php7.4 (#4943) and add changelog file * Update Subscriptions Core composer package to 2.4.1 (#5036) * Bump version of subscriptions-core to 2.4.1 * Update the existing changelog to the latest subscriptions-core version * add changelog entry Co-authored-by: Jesse Pearson <jessepearson@users.noreply.github.com> * Replace the deprecated wcs_renewal_order_meta_query with a new hook (#5052) * Replace the deprecated wcs_renewal_order_meta_query with a new hook * Add changelog * Add the missing s * Update Subscriptions Core to 2.5.1 (#5053) * Update Subscriptions Core version to 2.5.0 * Add changelog entry for subscriptions-core version bump * Add changelog entries for changes being introduced with new subscriptions-core version * Bump subscriptions-core version to 2.5.1 * Update changelog for subscriptions core version * Rename changelog file to fix typo Co-authored-by: James Allan <james.allan@automattic.com> * Add new workflow for post-release updates (#5003) * Revert "Adding manual option to deposit schedule selection (#4715)" (#5050) * Revert "Adding manual option to deposit schedule selection (#4715)" This reverts commit de82c8f. # Conflicts: # client/settings/deposits/index.js * Add changelog. Co-authored-by: Chris Aprea <aprea@users.noreply.github.com> Co-authored-by: Shendy <73803630+shendy-a8c@users.noreply.github.com> * [Authorizations] Wire Uncaptured Transactions screen to API data (#4982) This change adds real data to the Uncaptured transactions screen (still behind a flag): - Get authorizations data from the API and displays it in a table - Make each row clickable and redirect to the payment details for this specific payment - Displays a summary in the end of the table - Displays total amount of authorizations (only if the same currency - multiple currency filtering is out of scope) Co-authored-by: Miguel Gasca <miguel.gasca@automattic.com> * [Authorizations] [Integration] Capture authorizations from table (#4962) This change adds capture authorization support from the list of authorizations: - Adds capture_authorization endpoint, used by front-end components to reach the capture endpoint in the server - Adds CaptureAuthorizationButton React component, used in the list of authorizations - Front-end data layer and UI * Add Capture Charge button on payment details page (#5006) This change adds capture authorization support from the payment details page: - Modifies CaptureAuthorizationButton React component to support additional props (isSecondary, isSmall) to reuse it on payment details page - Front-end data layer and UI * Refund Confirmation modal on order status change (#4987) * Added Confirmation modal and WCPay Refund on Order Status change Changing the status from the dropdown on Edit Order screen was not triggering a WCPay refund. With these changes, we add a modal, and if the action is confirmed, a WCPay refund is triggered Co-authored-by: Jessy P <jessy.pappachan@automattic.com> * Fix jest tests due to daylight saving (#5065) * Since recent daylight saving change, some jest tests fail. This is a quick fix to unblock PRs from getting merged. * Changelog. * Fetch authorization data only if the payment is marked for manual capture (#5060) * Fetch authorization data only if the payment is marked for manual capture * Add changelog Co-authored-by: Shendy <73803630+shendy-a8c@users.noreply.github.com> * Write changelog. Co-authored-by: Jordan Bordonado <28830738+jbordonado@users.noreply.github.com> Co-authored-by: Danae Millan <41606954+a-danae@users.noreply.github.com> Co-authored-by: Cvetan Cvetanov <cvetan.cvetanov@automattic.com> Co-authored-by: Zvonimir Maglica <zvonimirmaglica4@gmail.com> Co-authored-by: bruce aldridge <bruce.aldridge@gmail.com> Co-authored-by: James Allan <james.allan@automattic.com> Co-authored-by: Chris Aprea <chris.aprea@automattic.com> Co-authored-by: Chris Aprea <aprea@users.noreply.github.com> Co-authored-by: Jesse Pearson <jessepearson@users.noreply.github.com> Co-authored-by: Hsing-yu Flowers <hsingyuc.7@gmail.com> Co-authored-by: Ismael Martín Alabarce <info@ismaeld.com> Co-authored-by: Dan Paun <82826872+dpaun1985@users.noreply.github.com> Co-authored-by: leonardo lopes de albuquerque <leonardo.albuquerque@automattic.com> Co-authored-by: Brian Borman <68524302+bborman22@users.noreply.github.com> Co-authored-by: Chris Aprea <1527164+aprea@users.noreply.github.com> Co-authored-by: Nagesh Pai <4162931+nagpai@users.noreply.github.com> Co-authored-by: Nagesh Pai <nagesh.pai@automattic.com> Co-authored-by: Matt Allan <matt.allan@automattic.com> Co-authored-by: Eric Jinks <3147296+Jinksi@users.noreply.github.com> Co-authored-by: Mayisha <33387139+Mayisha@users.noreply.github.com> Co-authored-by: Ahmed <ahmed.el.azzabi@automattic.com> Co-authored-by: Eduardo Pieretti Umpierre <eduardoumpierre@hotmail.com> Co-authored-by: Radoslav Georgiev <rageorgiev@gmail.com> Co-authored-by: Daniel Mallory <daniel.mallory@automattic.com> Co-authored-by: Allie Mims <60988591+allie500@users.noreply.github.com> Co-authored-by: Miguel Gasca <miguel.gasca@automattic.com> Co-authored-by: jessy <32092402+jessy-p@users.noreply.github.com> Co-authored-by: Jessy P <jessy.pappachan@automattic.com> * Revert "Release/5.0.0 (#5077)" (#5080) This reverts commit c5f0dfb. * Product version bump update * Clean up some workflows for the release automation (#5070) * Remove pull request push trigger from zip file workflow (#5086) * Send merchant's setting for `ship_to_billing_address_only` to platform checkout (#5037) * Add description for capture authorization endpoint docs (#5087) * Add description for capture authorization endpoint * Update description for capture terminal payment endpoint * Add changelog * Fix section divider in Authentication API docs (#5091) * Replace line with heading to separate sections in Auth docs * Add changelog * Add API docs for authorization endpoints (#5088) * Add docs for authorization endpoints * Add changelog * Improve the definition for summary endpoint * Support new platform checkout user from checkout blocks (#4638) * Provide minor post-conflicts fixes and ensure that Blocks checkout works as expected Working version of some of the payment methods without redirection * Update margin to fix cropping of search field for Multi-Currency currency search (#5076) * Update margin to fix cropping of search field for Multi-Currency currency search. * Add changelog. * Make the legacy card gateway work on the classic checkout * Check if user can `manage_woocommerce` in maybe_redirect_to_onboarding() (#5098) * Always load includes/admin/class-wc-payments-admin-settings.php if page is admin. * Check if user can `manage_woocommerce` in maybe_redirect_to_onboarding() and still load includes/admin/class-wc-payments-admin-settings.php conditionally if user can `manage_woocommerce`. * Add changelog entry. * Update unit tests which test `maybe_redirect_to_onboarding()` to adapt with the new check for user's `manage_woocommerce` capability. * Always load includes/admin/class-wc-payments-admin.php and includes/admin/class-wc-payments-admin-settings.php if page is admin. * Changelog entries for 5.0.1. * Product version bump update * Show uncaptured transactions tab only when some criteria is met (#5072) * Add shouldShowUncapturedTab boolean to control tab * Replace hard-coded displayAuthorizations with shouldShowUncapturedTab * Expose isAuthAndCaptureEnabled from WP * Move index.tsx content to transaction-tabs.tsx * Wrap TransactionsPage page in WCPaySettingsContext * Delete transactions-tabs.tsx file * Move back content to index.tsx * Add function return type * Wrap PaymentDetails in React context * Check isAuthAndCaptureEnabled instead of hard coded variable * Fix failing tests due to introducing isAuthAndCaptureEnabled * add isAuthAndCaptureEnabled to global declaration * add function return type JSX.Element * Add tests for the new transactions page * Fix a broken test case * Add changelog Co-authored-by: Miguel Gasca <miguel.gasca@automattic.com> * Add the missing include for authorization API docs in sidebar (#5097) * Include the newly added authorization docs in sidebar * Add changlog Co-authored-by: Miguel Gasca <miguel.gasca@automattic.com> * Add count of pending authorizations to Uncaptured tab (#5095) This change adds a counter of pending authorizations to the Uncaptured tab in the Transactions page. Co-authored-by: Anurag Bhandari <anurag@automattic.com> * Update copy of warning modal (#5103) This minor PR updates the copy of the Warning modal that appears when we disable WooCommerce Subscriptions extensions, when WC Pay is active. Co-authored-by: Nagesh Pai <nagesh.pai@automattic.com> * Adjust the checkout and fix the wcpay-upe-element element delivery to the front end * Expose fraud prevention token, send it to blocks checkout (#5104) * Provide payment gateway as the callback parameter * Remove Platform Checkout Test Site Sync yml file. (#5054) * Remove Platform Checkout Test Site Sync yml file. * Fix post-merge tests failures - part I * Extend the token service with LINK support * Fix post-merge tests failures - part II * Fix the "Learn More" link on Express Checkout settings section (#5105) This minor PR fixes the Learn More link on the Express Checkout settings Co-authored-by: Nagesh Pai <nagesh.pai@automattic.com> * Update subscriptions core version to 5.0.0 (#5120) * Decrease the complexity of initializing both legacy and UPE checkouts * Provide gateway to the UPE checkout * Fix post-merge tests failures - part III * Fixed fatal error when calling the payment_gateways api endpoint (#5108) * Changelog for 5.0.2. * Product version bump update * fixed bug that would not allow customers using firefox to be redirect to WooPay (#5112) * Fixes purchasing a synced subscription with WCPay Subscriptions results in an unsynced subscription (#5133) * Bump subscriptions core version to 2.5.2 * add changelog entry * Changelog entries for 5.0.3. * Product version bump update * Prevent the double-zip issue when downloading from zip file workflow (#5135) * Remove useless collections and variables after the PR review * fixed problem that would not close the redirect iframe after clicking the back button on safari (#5125) * Poc/add woopay express checkout button (#5059) * Fix the failing test for UPE gateway * Fix card payment gateway hiding on the admin page Co-authored-by: Nagesh Pai <nagesh.pai@automattic.com> Co-authored-by: Vladimir Reznichenko <kalessil@gmail.com> Co-authored-by: Mayisha <33387139+Mayisha@users.noreply.github.com> Co-authored-by: Ahmed <ahmed.el.azzabi@automattic.com> Co-authored-by: Daniel Mallory <daniel.mallory@automattic.com> Co-authored-by: Ismael Martín Alabarce <info@ismaeld.com> Co-authored-by: Dat Hoang <htdat@users.noreply.github.com> Co-authored-by: Dan Paun <82826872+dpaun1985@users.noreply.github.com> Co-authored-by: Dan Paun <dan.paun@automattic.com> Co-authored-by: jessy <32092402+jessy-p@users.noreply.github.com> Co-authored-by: Jessy P <jessy.pappachan@automattic.com> Co-authored-by: Jordan Bordonado <28830738+jbordonado@users.noreply.github.com> Co-authored-by: Danae Millan <41606954+a-danae@users.noreply.github.com> Co-authored-by: Cvetan Cvetanov <cvetan.cvetanov@automattic.com> Co-authored-by: Zvonimir Maglica <zvonimirmaglica4@gmail.com> Co-authored-by: bruce aldridge <bruce.aldridge@gmail.com> Co-authored-by: Shendy Kurnia <shendy.kurnia@a8c.com> Co-authored-by: James Allan <james.allan@automattic.com> Co-authored-by: Chris Aprea <chris.aprea@automattic.com> Co-authored-by: Chris Aprea <aprea@users.noreply.github.com> Co-authored-by: Shendy <73803630+shendy-a8c@users.noreply.github.com> Co-authored-by: Jesse Pearson <jessepearson@users.noreply.github.com> Co-authored-by: Hsing-yu Flowers <hsingyuc.7@gmail.com> Co-authored-by: leonardo lopes de albuquerque <leonardo.albuquerque@automattic.com> Co-authored-by: Brian Borman <68524302+bborman22@users.noreply.github.com> Co-authored-by: Chris Aprea <1527164+aprea@users.noreply.github.com> Co-authored-by: Nagesh Pai <4162931+nagpai@users.noreply.github.com> Co-authored-by: Matt Allan <matt.allan@automattic.com> Co-authored-by: Eric Jinks <3147296+Jinksi@users.noreply.github.com> Co-authored-by: Eduardo Pieretti Umpierre <eduardoumpierre@hotmail.com> Co-authored-by: Radoslav Georgiev <rageorgiev@gmail.com> Co-authored-by: Allie Mims <60988591+allie500@users.noreply.github.com> Co-authored-by: Miguel Gasca <miguel.gasca@automattic.com> Co-authored-by: Anurag Bhandari <anurag@automattic.com> Co-authored-by: Timur Karimov <timurkarimov@timurs-macbook-pro.home> Co-authored-by: Taha Paksu <3295+tpaksu@users.noreply.github.com> Co-authored-by: Thomas Shellberg <tommy.shellberg@automattic.com> Co-authored-by: Brett Shumaker <brettshumaker@gmail.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Due to daylight saving, some jest tests failed, for example: https://github.com/Automattic/woocommerce-payments/actions/runs/3411736308/jobs/5676322360.
Changes proposed in this Pull Request
Quick fix the failing tests to unblock release process. This fix will break again when there is next daylight saving change. I created this issue #5063 to fix the problem long term.
Testing instructions
Make sure all GitHub checks are green.
npm run changelog
to add a changelog file, choosepatch
to leave it empty if the change is not significant. You can add multiple changelog files in one PR by running this command a few times.Post merge