diff --git a/plugins/woocommerce/tests/e2e-pw/tests/merchant/products/add-variable-product/create-variable-product.spec.js b/plugins/woocommerce/tests/e2e-pw/tests/merchant/products/add-variable-product/create-variable-product.spec.js index 98bb59c38df..64c8a7f8bbb 100644 --- a/plugins/woocommerce/tests/e2e-pw/tests/merchant/products/add-variable-product/create-variable-product.spec.js +++ b/plugins/woocommerce/tests/e2e-pw/tests/merchant/products/add-variable-product/create-variable-product.spec.js @@ -26,18 +26,15 @@ test.describe( 'Add variable product', () => { await test.step( `Type "${ variableProductName }" into the "Product name" input field.`, async () => { - await page - .getByLabel( 'Product name' ) - .fill( variableProductName ); + const productNameTextbox = page.getByLabel( 'Product name' ); + const permalink = page.locator( '#sample-permalink' ); + + await productNameTextbox.fill( variableProductName ); + await productNameTextbox.blur(); + await expect( permalink ).toBeVisible(); } ); - await test.step( 'Expect permalink to appear.', async () => { - const permalink = page.locator( '#sample-permalink' ); - - await expect( permalink ).toBeVisible(); - } ); - await test.step( 'Select the "Variable product" product type.', async () => {