From e37d3bef6e7ee69e1b9c8a207595c0e0ee264eb2 Mon Sep 17 00:00:00 2001 From: nesrineabdmouleh Date: Wed, 28 Feb 2024 14:27:58 +0100 Subject: [PATCH] Fix FO > Cart > Display modal --- .../FO/classic/10_cart/01_modal/01_displayModal.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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);