fix: UI tests
This commit is contained in:
parent
2c3866a53e
commit
9d89b2afcf
@ -1,5 +1,5 @@
|
||||
{
|
||||
"baseUrl": "http://test_site:8000/",
|
||||
"baseUrl": "http://test_site:8000",
|
||||
"projectId": "da59y9",
|
||||
"adminPassword": "admin",
|
||||
"defaultCommandTimeout": 20000,
|
||||
|
@ -2,9 +2,11 @@ context('Organizational Chart', () => {
|
||||
before(() => {
|
||||
cy.login();
|
||||
cy.visit('/app/website');
|
||||
cy.awesomebar('Organizational Chart');
|
||||
|
||||
cy.get('.frappe-control[data-fieldname=company] input').focus().as('input');
|
||||
cy.get('@input').type('Test Org Chart');
|
||||
|
||||
cy.visit(`app/organizational-chart`);
|
||||
cy.fill_field('company', 'Test Org Chart');
|
||||
cy.get('body').click();
|
||||
cy.wait(500);
|
||||
});
|
||||
|
@ -3,10 +3,11 @@ context('Organizational Chart Mobile', () => {
|
||||
cy.login();
|
||||
cy.viewport(375, 667);
|
||||
cy.visit('/app/website');
|
||||
cy.awesomebar('Organizational Chart');
|
||||
|
||||
cy.get('.frappe-control[data-fieldname=company] input').focus().as('input');
|
||||
cy.get('@input').type('Test Org Chart');
|
||||
|
||||
cy.visit(`app/organizational-chart`);
|
||||
cy.wait(500);
|
||||
cy.fill_field('company', 'Test Org Chart');
|
||||
cy.get('body').click();
|
||||
cy.wait(500);
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user