Skip to content

Commit

Permalink
fix(ui5-date-picker): adjust unstable tests (#9223)
Browse files Browse the repository at this point in the history
Fixes: #9033
  • Loading branch information
unazko committed Jun 17, 2024
1 parent 4f18dfd commit 3b049c8
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion packages/main/test/specs/DatePicker.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -822,14 +822,20 @@ describe("Date Picker Tests", () => {
it("Months are disabled when out of range", async () => {
datepicker.id = "#dp33";

const input = await datepicker.getInput();
await input.click();
const root = await datepicker.getRoot();
await root.setProperty("value", "Jan 8, 2100");
await root.keys("Enter");

await datepicker.openPicker();

const btnMonth = await datepicker.getBtnMonth();
await btnMonth.click();

let displayedMonth = await datepicker.getDisplayedMonth(10);
assert.ok(await displayedMonth.hasClass("ui5-mp-item--disabled"), "Months out of range are disabled");

const root = await datepicker.getRoot();
await root.keys("ArrowDown");

displayedMonth = await datepicker.getDisplayedMonth(0);
Expand Down

0 comments on commit 3b049c8

Please sign in to comment.