mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-04 04:39:11 +00:00
fix: test
This commit is contained in:
@@ -3,6 +3,8 @@ context('Organizational Chart', () => {
|
|||||||
cy.login();
|
cy.login();
|
||||||
cy.visit('/app/website');
|
cy.visit('/app/website');
|
||||||
cy.awesomebar('Organizational Chart');
|
cy.awesomebar('Organizational Chart');
|
||||||
|
cy.wait(500);
|
||||||
|
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({
|
||||||
@@ -17,6 +19,7 @@ context('Organizational Chart', () => {
|
|||||||
}).then(res => {
|
}).then(res => {
|
||||||
expect(res.status).eq(200);
|
expect(res.status).eq(200);
|
||||||
cy.get('.frappe-control[data-fieldname=company] input').focus().as('input');
|
cy.get('.frappe-control[data-fieldname=company] input').focus().as('input');
|
||||||
|
|
||||||
cy.get('@input')
|
cy.get('@input')
|
||||||
.clear({ force: true })
|
.clear({ force: true })
|
||||||
.type('Test Org Chart{enter}', { force: true })
|
.type('Test Org Chart{enter}', { force: true })
|
||||||
|
|||||||
Reference in New Issue
Block a user