From 3e28a08cb26a4adb082470d6b69d0b589ac77cd4 Mon Sep 17 00:00:00 2001 From: Vladislav Tasev Date: Thu, 2 Jan 2025 14:59:29 +0200 Subject: [PATCH] chore: fix bad test --- packages/main/test/specs/DateRangePicker.spec.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/main/test/specs/DateRangePicker.spec.js b/packages/main/test/specs/DateRangePicker.spec.js index 78aee31cf379..c68ce2c4757b 100644 --- a/packages/main/test/specs/DateRangePicker.spec.js +++ b/packages/main/test/specs/DateRangePicker.spec.js @@ -350,9 +350,9 @@ describe("DateRangePicker general interaction", () => { 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 = await years[10]; - const yearInBetween = await years[12]; - const endSelectionYear = await years[14]; + const startSelectionYear = years[9]; + const yearInBetween = years[11]; + const endSelectionYear = years[13]; 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");