Fix flaky filling SKU field in e2e test (#49134)

This commit is contained in:
Veljko V 2024-07-04 13:00:14 +02:00 committed by GitHub
parent e562ed4ede
commit c9f8480a3f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 5 additions and 0 deletions

View File

@ -0,0 +1,4 @@
Significance: patch
Type: dev
E2E tests: Fix flaky merchant filling sku field in the new editor

View File

@ -39,6 +39,7 @@ test( 'can update sku', { tag: '@gutenberg' }, async ( { page, product } ) => {
const sku = `SKU_${ Date.now() }`;
await test.step( 'update the sku value', async () => {
await page.locator( '[name="woocommerce-product-sku"]' ).click();
await page.locator( '[name="woocommerce-product-sku"]' ).fill( sku );
} );