Skip to content

Commit

Permalink
fix(ui5-combobox): prevent 'change' event from being fired if the val…
Browse files Browse the repository at this point in the history
…ue is set programmatically

add another test
  • Loading branch information
ndeshev committed Mar 11, 2025
1 parent 586f312 commit 6e0f537
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions packages/main/cypress/specs/ComboBox.cy.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,5 +36,14 @@ describe("General interactions", () => {
cy.get("#cb").shadow().find("input").click();
cy.get("#another-cb").shadow().find("input").click();
cy.get("@changeStub").should("not.have.been.called");

cy.get("#cb").then(($cb) => {
const comboBox = $cb[0] as ComboBox;
comboBox.value = "Another ComboBox item text";
});

cy.get("#cb").shadow().find("input").click();
cy.get("#another-cb").shadow().find("input").click();
cy.get("@changeStub").should("not.have.been.called");
});
});

0 comments on commit 6e0f537

Please sign in to comment.