Skip to content

Commit

Permalink
Added test case
Browse files Browse the repository at this point in the history
  • Loading branch information
TalmizAhmed authored and ci-build committed Apr 23, 2024
1 parent 4d09843 commit bcdf85e
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions ui.tests/test-module/specs/dropdown/dropdown.runtime.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -223,4 +223,13 @@ describe("Form with Dropdown", () => {
cy.get(`#${id}`).should('have.class', 'cmp-adaptiveform-dropdown--filled');
});
});

it("should have empty value checked when default option is not configured", () => {
const [idDropdown, fieldView1] = Object.entries(formContainer._fields)[9];
const model = formContainer._model.getElement(idDropdown);
cy.get(`#${idDropdown} select`).invoke('val').then(val => {
expect(val).to.equal(null);
expect(model.value).to.be.null; // checking model
})
});
})

0 comments on commit bcdf85e

Please sign in to comment.