Fix assertion

This commit is contained in:
rodelgc 2023-05-18 00:11:50 +08:00
parent bdb4fa35fe
commit 34dd147b5b
1 changed files with 6 additions and 9 deletions

View File

@ -26,18 +26,15 @@ test.describe( 'Add variable product', () => {
await test.step( await test.step(
`Type "${ variableProductName }" into the "Product name" input field.`, `Type "${ variableProductName }" into the "Product name" input field.`,
async () => { async () => {
await page const productNameTextbox = page.getByLabel( 'Product name' );
.getByLabel( 'Product name' ) const permalink = page.locator( '#sample-permalink' );
.fill( variableProductName );
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( await test.step(
'Select the "Variable product" product type.', 'Select the "Variable product" product type.',
async () => { async () => {