Fix assertion
This commit is contained in:
parent
bdb4fa35fe
commit
34dd147b5b
|
@ -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.',
|
||||
|
|
Loading…
Reference in New Issue