test: cypress form

This commit is contained in:
barredterra 2024-02-23 22:49:10 +01:00
parent 2646771811
commit fa0b59aa70

View file

@ -138,7 +138,7 @@ context("Form", () => {
);
});
cy.get("@table").find('[data-idx="1"] .edit-grid-row').click();
cy.get("@table").find('[data-idx="1"] .btn-open-row').click();
cy.get(".grid-row-open").as("table-form");
cy.get("@table-form")
.find('.frappe-control[data-fieldname="is_primary_phone"]')
@ -146,7 +146,7 @@ context("Form", () => {
cy.get("@table-form").find(".grid-footer-toolbar").click();
// set property on form_render event of child table
cy.get("@table").find('[data-idx="1"] .edit-grid-row').click();
cy.get("@table").find('[data-idx="1"] .btn-open-row').click();
cy.get("@table")
.find('[data-idx="1"]')
.invoke("attr", "data-name")