Commit a8c67aba68 for woocommerce
commit a8c67aba687c59bf458baf25394d6b7f3002e24f
Author: Tom Cafferkey <tjcafferkey@gmail.com>
Date: Thu May 29 10:49:48 2025 +0100
Remove test that checks you can access the cart template via the page editor (#58355)
* Remove test Test the cart template > Template can be accessed from the page editor
diff --git a/plugins/woocommerce/changelog/remove-non-critical-flow-e2e-test-to-access-cart-template-via-page-editor b/plugins/woocommerce/changelog/remove-non-critical-flow-e2e-test-to-access-cart-template-via-page-editor
new file mode 100644
index 0000000000..4568659cf1
--- /dev/null
+++ b/plugins/woocommerce/changelog/remove-non-critical-flow-e2e-test-to-access-cart-template-via-page-editor
@@ -0,0 +1,4 @@
+Significance: minor
+Type: dev
+
+Remove test that checks you can access the cart template via the page editor
diff --git a/plugins/woocommerce/client/blocks/tests/e2e/tests/templates/cart-template.block_theme.spec.ts b/plugins/woocommerce/client/blocks/tests/e2e/tests/templates/cart-template.block_theme.spec.ts
index bd4ad1bc88..6968bc3a73 100644
--- a/plugins/woocommerce/client/blocks/tests/e2e/tests/templates/cart-template.block_theme.spec.ts
+++ b/plugins/woocommerce/client/blocks/tests/e2e/tests/templates/cart-template.block_theme.spec.ts
@@ -20,30 +20,6 @@ test.describe( 'Test the cart template', () => {
editor.canvas.getByLabel( 'Block: Title' )
).toBeVisible();
} );
-
- test( 'Template can be accessed from the page editor', async ( {
- admin,
- editor,
- page,
- } ) => {
- await admin.visitSiteEditor( { postType: 'page' } );
- await editor.page
- .getByRole( 'button', { name: 'Cart', exact: true } )
- .click();
- await editor.canvas.locator( 'body' ).click();
-
- await expect(
- editor.canvas.locator( 'h1:has-text("Cart")' ).first()
- ).toBeVisible();
-
- await editor.openDocumentSettingsSidebar();
- await page.getByLabel( 'Template options' ).click();
- await page.getByRole( 'menuitem', { name: 'Edit template' } ).click();
-
- await expect(
- editor.canvas.locator( 'h1:has-text("Cart")' ).first()
- ).toBeVisible();
- } );
} );
test.describe( 'Test editing the cart template', () => {