From 0560ff84f98ad7d14389641231474f44da53de02 Mon Sep 17 00:00:00 2001 From: Rohit Waghchaure Date: Fri, 30 Aug 2024 13:26:07 +0530 Subject: [PATCH] fix: label for web form --- cypress/integration/web_form.js | 6 +++--- frappe/website/doctype/web_form/templates/web_form.html | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/cypress/integration/web_form.js b/cypress/integration/web_form.js index 9db8b09ada..e9cd8100a7 100644 --- a/cypress/integration/web_form.js +++ b/cypress/integration/web_form.js @@ -195,7 +195,7 @@ context("Web Form", () => { cy.url().should("include", "/note/list"); cy.get(".web-list-table tbody tr:last").click(); - cy.get(".web-form-actions a").contains("Edit Response").click(); + cy.get(".web-form-actions a").contains("Edit").click(); cy.url().should("include", "/edit"); // Editable Field @@ -249,7 +249,7 @@ context("Web Form", () => { it("Navigate and Submit a WebForm", () => { cy.visit("/update-profile"); - cy.get(".web-form-actions a").contains("Edit Response").click(); + cy.get(".web-form-actions a").contains("Edit").click(); cy.fill_field("middle_name", "_Test User"); @@ -261,7 +261,7 @@ context("Web Form", () => { cy.call("frappe.tests.ui_test_helpers.update_webform_to_multistep").then(() => { cy.visit("/update-profile-duplicate"); - cy.get(".web-form-actions a").contains("Edit Response").click(); + cy.get(".web-form-actions a").contains("Edit").click(); cy.fill_field("middle_name", "_Test User"); diff --git a/frappe/website/doctype/web_form/templates/web_form.html b/frappe/website/doctype/web_form/templates/web_form.html index 310b06c0a7..f852ec2c42 100644 --- a/frappe/website/doctype/web_form/templates/web_form.html +++ b/frappe/website/doctype/web_form/templates/web_form.html @@ -17,7 +17,7 @@ {% block header_buttons %} {% if allow_edit and in_view_mode %} - {{ _("Edit Response", context="Button in web form") }} + {{ _("Edit", context="Button in web form") }} {% endif %} {% if allow_print and in_view_mode %}