fix: UI tests

This commit is contained in:
Rucha Mahabal 2021-07-19 15:47:31 +05:30
parent 2c3866a53e
commit 9d89b2afcf
3 changed files with 9 additions and 6 deletions

View File

@ -1,5 +1,5 @@
{
"baseUrl": "http://test_site:8000/",
"baseUrl": "http://test_site:8000",
"projectId": "da59y9",
"adminPassword": "admin",
"defaultCommandTimeout": 20000,

View File

@ -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);
});

View File

@ -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);
});