Merge pull request #27570 from rohitwaghchaure/fixed-label-button
fix: label for web form
This commit is contained in:
commit
fe192025a5
2 changed files with 4 additions and 4 deletions
|
|
@ -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");
|
||||
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@
|
|||
{% block header_buttons %}
|
||||
{% if allow_edit and in_view_mode %}
|
||||
<!-- edit button -->
|
||||
<a href="/{{ route }}/{{ doc_name }}/edit" class="edit-button btn btn-default btn-sm">{{ _("Edit Response", context="Button in web form") }}</a>
|
||||
<a href="/{{ route }}/{{ doc_name }}/edit" class="edit-button btn btn-default btn-sm">{{ _("Edit", context="Button in web form") }}</a>
|
||||
{% endif %}
|
||||
|
||||
{% if allow_print and in_view_mode %}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue