fix(grid): improve phone selection in bulk edit modal for child tables
This commit is contained in:
parent
25c19683db
commit
38bbe0a3a3
1 changed files with 7 additions and 1 deletions
|
|
@ -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();
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue