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,17 +26,14 @@ 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' )
.fill( variableProductName );
}
);
await test.step( 'Expect permalink to appear.', async () => {
const permalink = page.locator( '#sample-permalink' ); const permalink = page.locator( '#sample-permalink' );
await productNameTextbox.fill( variableProductName );
await productNameTextbox.blur();
await expect( permalink ).toBeVisible(); await expect( permalink ).toBeVisible();
} ); }
);
await test.step( await test.step(
'Select the "Variable product" product type.', 'Select the "Variable product" product type.',