From a3c12939ed32229ab14d61fc5172e9a395642d05 Mon Sep 17 00:00:00 2001 From: Frappe PR Bot Date: Tue, 31 Aug 2021 14:13:23 +0530 Subject: [PATCH] fix(test): first check for org chart always fails (#27250) * fix(test): first check for org chart always fails (#27249) (cherry picked from commit 52dd326f229af72f4f56de6b4fe77c04c11b82ba) # Conflicts: # cypress/integration/test_organizational_chart_desktop.js * fix: conflict Co-authored-by: Rucha Mahabal --- cypress/integration/test_organizational_chart_desktop.js | 5 +++++ cypress/integration/test_organizational_chart_mobile.js | 7 ++++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/cypress/integration/test_organizational_chart_desktop.js b/cypress/integration/test_organizational_chart_desktop.js index fb46bbb4331..39b00d32635 100644 --- a/cypress/integration/test_organizational_chart_desktop.js +++ b/cypress/integration/test_organizational_chart_desktop.js @@ -2,7 +2,12 @@ context('Organizational Chart', () => { before(() => { cy.login(); cy.visit('/app/website'); + }); + + it('navigates to org chart', () => { + cy.visit('/app'); cy.awesomebar('Organizational Chart'); + cy.url().should('include', '/organizational-chart'); cy.window().its('frappe.csrf_token').then(csrf_token => { return cy.request({ diff --git a/cypress/integration/test_organizational_chart_mobile.js b/cypress/integration/test_organizational_chart_mobile.js index df90dbfa22f..6e751513967 100644 --- a/cypress/integration/test_organizational_chart_mobile.js +++ b/cypress/integration/test_organizational_chart_mobile.js @@ -1,9 +1,14 @@ context('Organizational Chart Mobile', () => { before(() => { cy.login(); - cy.viewport(375, 667); cy.visit('/app/website'); + }); + + it('navigates to org chart', () => { + cy.viewport(375, 667); + cy.visit('/app'); cy.awesomebar('Organizational Chart'); + cy.url().should('include', '/organizational-chart'); cy.window().its('frappe.csrf_token').then(csrf_token => { return cy.request({