diff --git a/tests/e2e/tests/templates/checkout-template.block_theme.spec.ts b/tests/e2e/tests/templates/checkout-template.block_theme.spec.ts index f8e59e8029a..32890422726 100644 --- a/tests/e2e/tests/templates/checkout-template.block_theme.spec.ts +++ b/tests/e2e/tests/templates/checkout-template.block_theme.spec.ts @@ -21,7 +21,7 @@ test.describe( 'Test the checkout template', async () => { await expect( page .frameLocator( 'iframe[title="Editor canvas"i]' ) - .locator( 'h2:has-text("Checkout")' ) + .locator( 'h1:has-text("Checkout")' ) .first() ).toBeVisible(); } ); @@ -38,12 +38,12 @@ test.describe( 'Test the checkout template', async () => { await editor.page.getByRole( 'button', { name: /Checkout/i } ).click(); await editorUtils.enterEditMode(); await expect( - editor.canvas.locator( 'h2:has-text("Checkout")' ).first() + editor.canvas.locator( 'h1:has-text("Checkout")' ).first() ).toBeVisible(); await editor.openDocumentSettingsSidebar(); await page.getByRole( 'button', { name: 'Edit template' } ).click(); await expect( - editor.canvas.locator( 'h2:has-text("Checkout")' ).first() + editor.canvas.locator( 'h1:has-text("Checkout")' ).first() ).toBeVisible(); } ); @@ -53,7 +53,7 @@ test.describe( 'Test the checkout template', async () => { await expect( admin.page .frameLocator( 'iframe[title="Editor canvas"i]' ) - .locator( 'h2:has-text("Checkout")' ) + .locator( 'h1:has-text("Checkout")' ) .first() ).toBeVisible(); } );