選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

web_form.js 894 B

123456789101112131415161718192021222324252627
  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. });