chore: update cypress test cases

This commit is contained in:
hrwx 2021-12-30 02:09:51 +05:30
parent 8935691b32
commit 39c0577fc5
2 changed files with 7 additions and 3 deletions

View file

@ -13,7 +13,7 @@ context('Web Form', () => {
it('Navigate and Submit a MultiStep WebForm', () => {
cy.call('frappe.tests.ui_test_helpers.update_webform_to_multistep').then(() => {
cy.visit('/update-profile');
cy.visit('/update-profile-duplicate');
cy.get_field('last_name', 'Data').type('_Test User', {force: true}).wait(200);
cy.get('.btn-next').should('be.visible');
cy.get('.web-form-footer .btn-primary').should('not.be.visible');

View file

@ -249,5 +249,9 @@ def create_topic_and_reply(web_page):
@frappe.whitelist()
def update_webform_to_multistep():
doc = frappe.get_doc("Web Form", "edit-profile")
doc.is_multi_step_form = 1
doc.save()
_doc = frappe.copy_doc(doc)
_doc.is_multi_step_form = 1
_doc.title = "update-profile-duplicate"
_doc.route = "update-profile-duplicate"
_doc.is_standard = False
_doc.save()