forked from woocommerce/woocommerce
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[e2e tests] Fix the cleanup of created test pages and move to fixtures (
woocommerce#46944) * Added testPage fixture and testPgeTitle fixture option * Update create-cart-block.spec.js to use testPage fixture * Add changelog * Update create-checkout-block.spec.js to use testPage fixture * Update create-page.spec.js to use testPage fixture * Update create-woocommerce-blocks.spec.js to use testPage fixture * Update create-woocommerce-patterns.spec.js to use testPage fixture * Update cart-block.spec.js to use testPage fixture * Update cart-block-calculate-shipping.spec.js to use testPage fixture * Update cart-block-coupons.spec.js to use testPage fixture * Update checkout.spec.js to use some utils * Update checkout-block-coupons.spec.js to use testPage fixture * Use cart utils in checkout-create-account.spec.js * Use cart utils in checkout-login.spec.js * Use cart utils in order-email-receiving.spec.js * Update shop-products-filter-by-price.spec.js to use testPage fixture * Add helpers.js * Move the page title random name generator in the base fixture to ensure uniqueness * Remove eslint exceptions * Use api fixture
- Loading branch information
1 parent
94e438f
commit fb9613e
Showing
22 changed files
with
243 additions
and
418 deletions.
There are no files selected for viewing
4 changes: 4 additions & 0 deletions
4
plugins/woocommerce/changelog/e2e-fix-cleanup-for-created-pages
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
Significance: patch | ||
Type: dev | ||
|
||
E2E tests: fix cleanup of created test pages and migrate to using fixtures |
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
40 changes: 15 additions & 25 deletions
40
plugins/woocommerce/tests/e2e-pw/tests/merchant/create-cart-block.spec.js
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
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
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
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
Oops, something went wrong.