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(
`Type "${ variableProductName }" into the "Product name" input field.`,
async () => {
await page
.getByLabel( 'Product name' )
.fill( variableProductName );
}
);
await test.step( 'Expect permalink to appear.', async () => {
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(
'Select the "Variable product" product type.',