Skip to content

Commit

Permalink
Replace deprecated page methods
Browse files Browse the repository at this point in the history
  • Loading branch information
rodelgc committed May 16, 2023
1 parent f2108a8 commit e077c4c
Showing 1 changed file with 5 additions and 3 deletions.
Expand Up @@ -243,7 +243,9 @@ test.describe( 'Add New Variable Product Page', () => {
await test.step(
'Select the "Variable product" product type.',
async () => {
await page.selectOption( '#product-type', 'variable' );
await page
.locator( '#product-type' )
.selectOption( 'variable' );
}
);

Expand Down Expand Up @@ -385,7 +387,7 @@ test.describe( 'Add New Variable Product Page', () => {
);

await test.step( 'Click on the "Variations" tab.', async () => {
await page.click( 'a[href="#variable_product_options"]' );
await page.locator( 'a[href="#variable_product_options"]' ).click();
} );

await test.step(
Expand All @@ -394,7 +396,7 @@ test.describe( 'Add New Variable Product Page', () => {
// event listener for handling the link_all_variations confirmation dialog
page.on( 'dialog', ( dialog ) => dialog.accept() );

await page.click( 'button.generate_variations' );
await page.locator( 'button.generate_variations' ).click();
}
);

Expand Down

0 comments on commit e077c4c

Please sign in to comment.