Commit cb88bc4420 for woocommerce
commit cb88bc442089d92c083d53e1be174512181c13f4
Author: Seun Olorunsola <30554163+triple0t@users.noreply.github.com>
Date: Fri Jan 30 18:12:59 2026 +0100
Update E2E test for email editor to modify footer text with custom content (#63044)
diff --git a/plugins/woocommerce/tests/e2e-pw/tests/email-editor/email-editor-reset-template.spec.js b/plugins/woocommerce/tests/e2e-pw/tests/email-editor/email-editor-reset-template.spec.js
index 8c1dc127f1..02ff77abf8 100644
--- a/plugins/woocommerce/tests/e2e-pw/tests/email-editor/email-editor-reset-template.spec.js
+++ b/plugins/woocommerce/tests/e2e-pw/tests/email-editor/email-editor-reset-template.spec.js
@@ -78,12 +78,12 @@ test.describe( 'WooCommerce Email Editor Reset Template', () => {
.frameLocator( 'iframe[name="editor-canvas"]' )
.first();
- // Click on the last paragraph to select it (the footer paragraph is editable)
- await editorFrame.locator( 'p' ).last().click();
-
- // Clear existing text and type new text
- await page.keyboard.press( 'ControlOrMeta+A' ); // Select all
- await page.keyboard.type( uniqueText );
+ // Update the footer text and add a custom text
+ await page
+ .locator( 'iframe[name="editor-canvas"]' )
+ .contentFrame()
+ .getByText( 'All Rights Reserved' )
+ .fill( `All Rights Reserved. Custom text: ${ uniqueText }` );
// Save the customization
await page.getByRole( 'button', { name: 'Save', exact: true } ).click();