-
Notifications
You must be signed in to change notification settings - Fork 219
Archive Templates - Compatibility Layer: fix E2E tests #11273
Conversation
The release ZIP for this PR is accessible via:
Script Dependencies ReportThere is no changed script dependency between this branch and trunk. This comment was automatically generated by the TypeScript Errors Report
🎉 🎉 This PR does not introduce new TS errors. |
Size Change: 0 B Total Size: 1.48 MB ℹ️ View Unchanged
|
5253672
to
2c978be
Compare
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.
So with this PR the single test with multiple steps was transformed into multiple tests with single step each.
If splitting each step into separate test cases is required to fix these tests, then I think we should remove steps
as they are unnecessary in such a setup. What do you think?
@@ -51,7 +50,7 @@ const multipleOccurranceScenarios: Scenario[] = [ | |||
{ | |||
title: 'Before Shop Loop Item Title', | |||
dataTestId: 'woocommerce_before_shop_loop_item_title', | |||
content: 'Hook: woocommerce_before_shop_loop_item_title', | |||
content: ' Hook: woocommerce_before_shop_loop_item_title', |
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.
I think whitespace was added by mistake 🙌
198a271
to
a7f81e6
Compare
a7f81e6
to
2d9cbf4
Compare
Good point! I addressed your feedback! Thanks for the review 🙇 |
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.
Good point! I addressed your feedback! Thanks for the review 🙇
Thanks! Approving! 🚀
What
Partial fixes for #11270
Why
This PR enabled the E2E tests for the compatibility layer that they were disabled with #11055.
These E2E tests started to fail after the PW update. PW documentation suggested a different approach for parameterized tests.
Applying the changes following the documentation, tests don't fail anymore.
Testing Instructions
Please consider any edge cases this change may have, and also other areas of the product this may impact.
Screenshots or screencast
WooCommerce Visibility
Required:
Checklist
Required:
[type]
label or a[skip-changelog]
label.Conditional:
[skip-changelog]
label is not present).Changelog