Fix assertion
This commit is contained in:
parent
bdb4fa35fe
commit
34dd147b5b
|
@ -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 () => {
|
||||||
|
|
Loading…
Reference in New Issue