From 4be43092a39331f4d3c8a401416b95853a4d5c86 Mon Sep 17 00:00:00 2001 From: Ankush Menat Date: Mon, 1 Nov 2021 14:43:31 +0530 Subject: [PATCH] test: flaky sidebar test due to msgprint --- cypress/integration/sidebar.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/cypress/integration/sidebar.js b/cypress/integration/sidebar.js index cd771430c6..2831c9bad5 100644 --- a/cypress/integration/sidebar.js +++ b/cypress/integration/sidebar.js @@ -17,7 +17,7 @@ context('Sidebar', () => { cy.get('.group-by-item > .dropdown-item').should('contain', 'Me'); //Assigning a doctype to a user - cy.click_listview_row_item(0); + cy.visit('/app/doctype/ToDo'); cy.get('.form-assignments > .flex > .text-muted').click(); cy.get_field('assign_to_me', 'Check').click(); cy.get('.modal-footer > .standard-actions > .btn-primary').click(); @@ -44,8 +44,7 @@ context('Sidebar', () => { cy.clear_filters(); //To remove the assignment - cy.visit('/app/doctype'); - cy.click_listview_row_item(0); + cy.visit('/app/doctype/ToDo'); cy.get('.assignments > .avatar-group > .avatar > .avatar-frame').click(); cy.get('.remove-btn').click({force: true}); cy.hide_dialog(); @@ -53,4 +52,4 @@ context('Sidebar', () => { cy.click_sidebar_button("Assigned To"); cy.get('.empty-state').should('contain', 'No filters found'); }); -}); \ No newline at end of file +});