[E2E] Stabilize flaky Add to Cart test (#44639)

Co-authored-by: Karol Manijak <20098064+kmanijak@users.noreply.github.com>
This commit is contained in:
Bart Kalisz 2024-02-16 14:44:41 +01:00 committed by GitHub
parent 0d5c224520
commit 711f420ef1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 6 deletions

View File

@ -33,17 +33,11 @@ test.describe( `${ blockData.name } Block`, () => {
test( 'can be added in the Post Editor only as inner block of the Single Product Block', async ( {
admin,
editor,
page,
editorUtils,
} ) => {
// Add to Cart with Options in the Post Editor is only available as inner block of the Single Product Block.
await admin.createNewPost( { legacyCanvas: true } );
await editor.insertBlock( { name: 'woocommerce/single-product' } );
await page.waitForResponse(
( response ) =>
response.url().includes( 'wc/store/v1/products' ) &&
response.status() === 200
);
await configureSingleProductBlock( editorUtils );

View File

@ -0,0 +1,4 @@
Significance: patch
Type: dev
Stabilize a flaky E2E Add to Cart Form test