diff --git a/cypress/integration/web_form.js b/cypress/integration/web_form.js index 5f5ac203cf..8346c96313 100644 --- a/cypress/integration/web_form.js +++ b/cypress/integration/web_form.js @@ -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'); diff --git a/frappe/tests/ui_test_helpers.py b/frappe/tests/ui_test_helpers.py index 075bb9fcec..79868b0b76 100644 --- a/frappe/tests/ui_test_helpers.py +++ b/frappe/tests/ui_test_helpers.py @@ -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()