Skip to content

Commit

Permalink
Fix FO > Cart > Display modal
Browse files Browse the repository at this point in the history
  • Loading branch information
nesrineabdmouleh committed Feb 28, 2024
1 parent aeb6487 commit e37d3be
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit e37d3be

Please sign in to comment.