Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: stabilize test #10532

Merged
merged 1 commit into from
Jan 16, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions packages/main/test/specs/DateRangePicker.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -344,15 +344,15 @@ describe("DateRangePicker general interaction", () => {
const daterangepicker = await browser.$("#daterange-picker10");

await daterangepicker.click();
await daterangepicker.keys("2024 - 2028");
await daterangepicker.keys("0001 - 0006");
await daterangepicker.keys("Enter");
await browser.keys("F4");

const yearPicker = await browser.$(`#daterange-picker10`).shadow$(`ui5-calendar`).shadow$(`ui5-yearpicker`);
const years = await yearPicker.shadow$(`.ui5-yp-root`).$$("div > .ui5-yp-item");
const startSelectionYear = years[9];
const yearInBetween = years[11];
const endSelectionYear = years[13];
const startSelectionYear = years[0];
const yearInBetween = years[4];
const endSelectionYear = years[5];

assert.ok((await startSelectionYear.getAttribute("class")).includes("ui5-yp-item--selected"), "The start year has the correct selection class");
assert.ok((await yearInBetween.getAttribute("class")).includes("ui5-yp-item--selected-between"), "The in-between year has the correct selection class");
Expand Down
Loading