From d123d24d9fc86519ea888be24f54080486acb761 Mon Sep 17 00:00:00 2001 From: Suraj Shetty Date: Thu, 26 Aug 2021 22:08:41 +0530 Subject: [PATCH] test: Clear filters after visiting contact list --- cypress/integration/dashboard_links.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/cypress/integration/dashboard_links.js b/cypress/integration/dashboard_links.js index 164b29b7bb..b77965ee1a 100644 --- a/cypress/integration/dashboard_links.js +++ b/cypress/integration/dashboard_links.js @@ -2,10 +2,13 @@ context('Dashboard links', () => { before(() => { cy.visit('/login'); cy.login(); - cy.visit('/app/user'); }); it('Adding a new contact, checking for the counter on the dashboard and deleting the created contact', () => { + cy.visit('/app/contact'); + cy.clear_filters(); + + cy.visit('/app/user'); cy.get('.list-row-col > .level-item > .ellipsis').eq(0).click(); //To check if initially the dashboard contains only the "Contact" link and there is no counter @@ -38,6 +41,7 @@ context('Dashboard links', () => { }); it('Report link in dashboard', () => { + cy.visit('/app/user'); cy.visit('/app/user/Administrator'); cy.get('[data-doctype="Contact"]').should('contain', 'Contact'); cy.findByText('Connections');