diff --git a/tests/UI/campaigns/functional/FO/classic/10_cart/01_modal/01_displayModal.ts b/tests/UI/campaigns/functional/FO/classic/10_cart/01_modal/01_displayModal.ts index b91ffbe1790f9..e0c29b5d60a20 100644 --- a/tests/UI/campaigns/functional/FO/classic/10_cart/01_modal/01_displayModal.ts +++ b/tests/UI/campaigns/functional/FO/classic/10_cart/01_modal/01_displayModal.ts @@ -44,7 +44,10 @@ describe('FO - cart : Display modal when adding a product to cart', async () => await quickViewModal.setQuantityAndAddToCart(page, 2); const isBlockCartModal = await blockCartModal.isBlockCartModalVisible(page); - expect(isBlockCartModal).to.contains(homePage.successAddToCartMessage); + expect(isBlockCartModal).to.equal(true); + + const successMessage = await blockCartModal.getBlockCartModalTitle(page); + expect(successMessage).to.contains(homePage.successAddToCartMessage); const isModalNotVisible = await blockCartModal.continueShopping(page); expect(isModalNotVisible).to.eq(true);