From 1c25533d840c5eb3595b4ca7194b2dfb19bf6700 Mon Sep 17 00:00:00 2001 From: simgar98 Date: Fri, 23 Feb 2024 10:07:29 +0100 Subject: [PATCH] Add test to fix coverage Run yarn prettier --- src/core/toast.cy.tsx | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/core/toast.cy.tsx b/src/core/toast.cy.tsx index 36b1afae..45ee1d91 100644 --- a/src/core/toast.cy.tsx +++ b/src/core/toast.cy.tsx @@ -448,7 +448,14 @@ describe('with multi containers', () => { cy.findByText('first container').should('exist'); cy.findByText('third container').should('not.exist'); cy.findByText('third container second toast').should('not.exist'); - cy.findByText('first container').should('exist'); + cy.findByText('first container') + .should('exist') + .then(() => { + toast.dismiss({ containerId: 'Non-Existing Container Id' }); + + cy.findByText('first container').should('not.exist'); + cy.findByText('third container').should('not.exist'); + }); }); });