Skip to content

Commit

Permalink
fix: fix DateRangePicker test
Browse files Browse the repository at this point in the history
  • Loading branch information
ilhan007 committed Jun 30, 2024
1 parent d9aee16 commit 7f7f663
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions packages/main/test/specs/DateRangePicker.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -249,19 +249,6 @@ describe("DateRangePicker general interaction", () => {
assert.equal(res.drpValue, await (await browser.$("#labelDate")).getHTML(false), "Event value is correct");
});

it("Min and max dates are set without format-pattern by using ISO (YYYY-MM-dd) format", async () => {
await browser.url(`test/pages/DateRangePicker.html?sap-ui-language=bg`);

const daterangepicker = await browser.$("#daterange-picker8");
const dateRangePickerInput = await daterangepicker.shadow$("ui5-input");

await daterangepicker.click();
await daterangepicker.keys("10.02.2023 г. - 25.07.2023 г.");
await daterangepicker.keys("Enter");

assert.strictEqual(await dateRangePickerInput.getProperty("valueState"), "Negative", "Min and max dates are set correctly");
});

it("picker popover should have accessible name", async () => {
const daterangepicker = await browser.$("#daterange-picker3");
await daterangepicker.click();
Expand Down Expand Up @@ -294,4 +281,17 @@ describe("DateRangePicker general interaction", () => {

await browser.keys("Escape");
});

it("Min and max dates are set without format-pattern by using ISO (YYYY-MM-dd) format", async () => {
await browser.url(`test/pages/DateRangePicker.html?sap-ui-language=bg`);

const daterangepicker = await browser.$("#daterange-picker8");
const dateRangePickerInput = await daterangepicker.shadow$("ui5-input");

await daterangepicker.click();
await daterangepicker.keys("10.02.2023 г. - 25.07.2023 г.");
await daterangepicker.keys("Enter");

assert.strictEqual(await dateRangePickerInput.getProperty("valueState"), "Negative", "Min and max dates are set correctly");
});
});

0 comments on commit 7f7f663

Please sign in to comment.