|
|
@@ -7,7 +7,7 @@ context('Form', () => { |
|
|
|
}); |
|
|
|
}); |
|
|
|
it('create a new form', () => { |
|
|
|
cy.visit('/app/Form/ToDo/New ToDo 1'); |
|
|
|
cy.visit('/app/todo/new'); |
|
|
|
cy.fill_field('description', 'this is a test todo', 'Text Editor').blur(); |
|
|
|
cy.wait(300); |
|
|
|
cy.get('.page-title').should('contain', 'Not Saved'); |
|
|
@@ -18,20 +18,18 @@ context('Form', () => { |
|
|
|
}).as('form_save'); |
|
|
|
cy.get('.primary-action').click(); |
|
|
|
cy.wait('@form_save').its('status').should('eq', 200); |
|
|
|
cy.visit('/app/List/ToDo'); |
|
|
|
cy.location('hash').should('eq', '/app/List/ToDo/List'); |
|
|
|
cy.visit('/app/todo'); |
|
|
|
cy.get('h1').should('be.visible').and('contain', 'To Do'); |
|
|
|
cy.get('.list-row').should('contain', 'this is a test todo'); |
|
|
|
}); |
|
|
|
it('navigates between documents with child table list filters applied', () => { |
|
|
|
cy.visit('/app/List/Contact'); |
|
|
|
cy.location('hash').should('eq', '/app/List/Contact/List'); |
|
|
|
cy.visit('/app/contact'); |
|
|
|
cy.get('.tag-filters-area .btn:contains("Add Filter")').click(); |
|
|
|
cy.get('.fieldname-select-area').should('exist'); |
|
|
|
cy.get('.fieldname-select-area input').type('Number{enter}', { force: true }); |
|
|
|
cy.get('.filter-field .input-with-feedback.form-control').type('123', { force: true }); |
|
|
|
cy.get('.filter-box .btn:contains("Apply")').click({ force: true }); |
|
|
|
cy.visit('/app/Form/Contact/Test Form Contact 3'); |
|
|
|
cy.visit('/app/contact/Test Form Contact 3'); |
|
|
|
cy.get('.prev-doc').should('be.visible').click(); |
|
|
|
cy.get('.msgprint-dialog .modal-body').contains('No further records').should('be.visible'); |
|
|
|
cy.get('.btn-modal-close:visible').click(); |
|
|
@@ -50,7 +48,7 @@ context('Form', () => { |
|
|
|
let website_input = 'website.in'; |
|
|
|
let expectBackgroundColor = 'rgb(255, 220, 220)'; |
|
|
|
|
|
|
|
cy.visit('/app/Form/Contact/New Contact 1'); |
|
|
|
cy.visit('/app/contact/new'); |
|
|
|
cy.get('.frappe-control[data-fieldname="email_ids"]').as('table'); |
|
|
|
cy.get('@table').find('button.grid-add-row').click(); |
|
|
|
cy.get('.grid-body .rows [data-fieldname="email_id"]').click(); |
|
|
|