You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

28 regels
894 B

  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(5000);
  10. cy.url().should('include', '/me');
  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('.btn-next').click();
  18. cy.get('.btn-previous').should('be.visible');
  19. cy.get('.btn-next').should('not.be.visible');
  20. cy.get('.web-form-actions .btn-primary').click();
  21. cy.wait(5000);
  22. cy.url().should('include', '/me');
  23. });
  24. });
  25. });