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

Move Cart, Checkout and Order Confirmation template customization tests to the parameterized tests file #43992

Conversation

Aljullu
Copy link
Contributor

@Aljullu Aljullu commented Jan 23, 2024

Changes proposed in this Pull Request:

In #43778, we converted block templates tests to parameterized tests, but it didn't include Cart, Checkout and Order Confirmation templates tests.

How to test the changes in this Pull Request:

Note: no need to test this for the release.

  1. Verify Playwright e2e tests pass.

Changelog entry

  • Automatically create a changelog entry from the details below.

Significance

  • Patch
  • Minor
  • Major

Type

  • Fix - Fixes an existing bug
  • Add - Adds functionality
  • Update - Update existing functionality
  • Dev - Development related task
  • Tweak - A minor adjustment to the codebase
  • Performance - Address performance issues
  • Enhancement - Improvement to existing functionality

Message

Comment

Move Cart, Checkout and Order Confirmation template customization tests to the parameterized tests file

@Aljullu Aljullu added the focus: template Issue related to WooCommerce templates. label Jan 23, 2024
@Aljullu Aljullu self-assigned this Jan 23, 2024
},
{
visitPage: async ( { frontendUtils, page } ) => {
const checkoutPage = new CheckoutPage( { page } );
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I don't know if this is the best way to create the CheckoutPage() object, but it was the cleanest way I could find without having to extend the test object of all tests. 🤔

Copy link
Contributor

github-actions bot commented Jan 23, 2024

Test Results Summary

Commit SHA: 3eafde5

Test 🧪Passed ✅Failed 🚨Broken 🚧Skipped ⏭️Unknown ❔Total 📊Duration ⏱️
API Tests25900202610m 36s
E2E Tests28800502936m 28s

To view the full API test report, click here.
To view the full E2E test report, click here.
To view all test reports, visit the WooCommerce Test Reports Dashboard.

@Aljullu Aljullu force-pushed the update/cart-checkout-order-confirmation-templates-to-parameterized-tests branch from 3fb6e64 to 72170b4 Compare January 23, 2024 10:03
@Aljullu Aljullu force-pushed the update/cart-checkout-order-confirmation-templates-to-parameterized-tests branch from 44b9ce3 to 7bb917e Compare January 23, 2024 10:15
@github-actions github-actions bot added the plugin: woocommerce Issues related to the WooCommerce Core plugin. label Jan 23, 2024
@Aljullu Aljullu marked this pull request as ready for review January 23, 2024 12:04
@woocommercebot woocommercebot requested review from a team and roykho and removed request for a team January 23, 2024 12:04
Copy link
Contributor

Hi @roykho,

Apart from reviewing the code changes, please make sure to review the testing instructions as well.

You can follow this guide to find out what good testing instructions should look like:
https://github.com/woocommerce/woocommerce/wiki/Writing-high-quality-testing-instructions

@Aljullu Aljullu requested a review from roykho January 24, 2024 08:31
Copy link
Member

@roykho roykho left a comment

Choose a reason for hiding this comment

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

LGTM!

@Aljullu Aljullu merged commit 081f9d3 into trunk Jan 24, 2024
43 checks passed
@Aljullu Aljullu deleted the update/cart-checkout-order-confirmation-templates-to-parameterized-tests branch January 24, 2024 14:26
@github-actions github-actions bot added this to the 8.6.0 milestone Jan 24, 2024
@github-actions github-actions bot added the needs: analysis Indicates if the PR requires a PR testing scrub session. label Jan 24, 2024
@alopezari alopezari added status: analysis complete Indicates if a PR has been analysed by Solaris and removed needs: analysis Indicates if the PR requires a PR testing scrub session. labels Jan 24, 2024
opr pushed a commit that referenced this pull request Jan 25, 2024
…ts to the parameterized tests file (#43992)

* Move Cart, Checkout and Order Confirmation template customization tests to the parameterized tests file

* Add changefile(s) from automation for the following project(s): woocommerce-blocks

* Clean up order-confirmation.block_theme.spec.ts file

---------

Co-authored-by: github-actions <github-actions@github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
focus: template Issue related to WooCommerce templates. plugin: woocommerce Issues related to the WooCommerce Core plugin. status: analysis complete Indicates if a PR has been analysed by Solaris
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants