Não pode escolher mais do que 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

web_form.js 1.1 KiB

1234567891011121314151617181920212223242526272829
  1. context('Web Form', () => {
  2. before(() => {
  3. cy.login();
  4. });
  5. it('Navigate and Submit a WebForm', () => {
  6. cy.visit('/update-profile');
  7. cy.get_field('last_name', 'Data').type('_Test User', {force: true}).wait(200);
  8. cy.get('.web-form-actions .btn-primary').click();
  9. cy.wait(500);
  10. cy.get('.modal.show > .modal-dialog').should('be.visible');
  11. });
  12. it('Navigate and Submit a MultiStep WebForm', () => {
  13. cy.call('frappe.tests.ui_test_helpers.update_webform_to_multistep').then(() => {
  14. cy.visit('/update-profile-duplicate');
  15. cy.get_field('last_name', 'Data').type('_Test User', {force: true}).wait(200);
  16. cy.get('.btn-next').should('be.visible');
  17. cy.get('.web-form-footer .btn-primary').should('not.be.visible');
  18. cy.get('.btn-next').click();
  19. cy.get('.btn-previous').should('be.visible');
  20. cy.get('.btn-next').should('not.be.visible');
  21. cy.get('.web-form-footer .btn-primary').should('be.visible');
  22. cy.get('.web-form-actions .btn-primary').click();
  23. cy.wait(500);
  24. cy.get('.modal.show > .modal-dialog').should('be.visible');
  25. });
  26. });
  27. });