fix(test): first check for org chart always fails (#27249)
This commit is contained in:
parent
1682402a9f
commit
52dd326f22
@ -2,8 +2,11 @@ context('Organizational Chart', () => {
|
|||||||
before(() => {
|
before(() => {
|
||||||
cy.login();
|
cy.login();
|
||||||
cy.visit('/app/website');
|
cy.visit('/app/website');
|
||||||
|
});
|
||||||
|
|
||||||
|
it('navigates to org chart', () => {
|
||||||
|
cy.visit('/app');
|
||||||
cy.awesomebar('Organizational Chart');
|
cy.awesomebar('Organizational Chart');
|
||||||
cy.wait(500);
|
|
||||||
cy.url().should('include', '/organizational-chart');
|
cy.url().should('include', '/organizational-chart');
|
||||||
|
|
||||||
cy.window().its('frappe.csrf_token').then(csrf_token => {
|
cy.window().its('frappe.csrf_token').then(csrf_token => {
|
||||||
|
@ -1,9 +1,14 @@
|
|||||||
context('Organizational Chart Mobile', () => {
|
context('Organizational Chart Mobile', () => {
|
||||||
before(() => {
|
before(() => {
|
||||||
cy.login();
|
cy.login();
|
||||||
cy.viewport(375, 667);
|
|
||||||
cy.visit('/app/website');
|
cy.visit('/app/website');
|
||||||
|
});
|
||||||
|
|
||||||
|
it('navigates to org chart', () => {
|
||||||
|
cy.viewport(375, 667);
|
||||||
|
cy.visit('/app');
|
||||||
cy.awesomebar('Organizational Chart');
|
cy.awesomebar('Organizational Chart');
|
||||||
|
cy.url().should('include', '/organizational-chart');
|
||||||
|
|
||||||
cy.window().its('frappe.csrf_token').then(csrf_token => {
|
cy.window().its('frappe.csrf_token').then(csrf_token => {
|
||||||
return cy.request({
|
return cy.request({
|
||||||
|
Loading…
Reference in New Issue
Block a user