fix(grid): improve phone selection in bulk edit modal for child tables

This commit is contained in:
Sumit Jain 2026-04-27 12:45:49 +05:30
parent 25c19683db
commit 38bbe0a3a3

View file

@ -159,7 +159,13 @@ context("Grid", () => {
cy.get("@table").find(".grid-edit-rows").click({ force: true }); cy.get("@table").find(".grid-edit-rows").click({ force: true });
cy.get(".modal:visible").within(() => { cy.get(".modal:visible").within(() => {
cy.get('[data-fieldname="field"] select').select("Phone"); cy.get('[data-fieldname="field"] select').then(($select) => {
const phone_option = [...$select[0].options].find((option) =>
/phone/i.test(option.text)
);
expect(phone_option).to.exist;
cy.wrap($select).select(phone_option.value);
});
cy.get('[data-fieldname="value"] input').clear().type(updated_phone); cy.get('[data-fieldname="value"] input').clear().type(updated_phone);
cy.get(".btn-primary").click(); cy.get(".btn-primary").click();
}); });