Skip to content

Commit 02a9f94

Browse files
authored
Merge branch 'main' into carousel_fix
2 parents 04f0e17 + 3c9d978 commit 02a9f94

File tree

1 file changed

+52
-52
lines changed

1 file changed

+52
-52
lines changed

packages/main/cypress/specs/DynamicDateRange.cy.tsx

Lines changed: 52 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -333,58 +333,58 @@ describe('DynamicDateRange Last/Next Options', () => {
333333
.should('have.value', 'Last 7 Days');
334334
});
335335

336-
it('handles Next X Weeks option and verifies date range calculation', () => {
337-
new LastOptions();
338-
new NextOptions();
339-
340-
cy.window().then((win) => {
341-
cy.stub(win.Date, 'now').returns(new Date(2025, 5, 15).getTime()); // June 15, 2025
342-
});
343-
344-
cy.get('[ui5-dynamic-date-range]')
345-
.as("ddr");
346-
347-
cy.get("@ddr")
348-
.ui5DynamicDateRangeOpen()
349-
.ui5DynamicDateRangeGetOptionsList()
350-
.as("listItems");
351-
352-
cy.get("@listItems")
353-
.last()
354-
.realClick();
355-
356-
cy.get("@popover")
357-
.find("[slot='header']")
358-
.should('contain.text', 'Next X');
359-
360-
cy.get("@popover")
361-
.find("[ui5-step-input]")
362-
.as("stepInput");
363-
364-
cy.get("@stepInput")
365-
.shadow()
366-
.find("[ui5-input]")
367-
.shadow()
368-
.find("input")
369-
.as("stepInputInner");
370-
371-
cy.get("@stepInputInner")
372-
.clear()
373-
.realType('3');
374-
375-
cy.get("@stepInputInner")
376-
.realPress("Enter");
377-
378-
cy.get("@popover")
379-
.find(".ui5-ddr-current-value")
380-
.should('contain.text', 'Selected:');
381-
382-
cy.get("@ddr")
383-
.ui5DynamicDateRangeSubmit();
384-
385-
cy.get("@innerInput")
386-
.should('have.value', 'Next 3 Weeks');
387-
});
336+
// it('handles Next X Weeks option and verifies date range calculation', () => {
337+
// new LastOptions();
338+
// new NextOptions();
339+
340+
// cy.window().then((win) => {
341+
// cy.stub(win.Date, 'now').returns(new Date(2025, 5, 15).getTime()); // June 15, 2025
342+
// });
343+
344+
// cy.get('[ui5-dynamic-date-range]')
345+
// .as("ddr");
346+
347+
// cy.get("@ddr")
348+
// .ui5DynamicDateRangeOpen()
349+
// .ui5DynamicDateRangeGetOptionsList()
350+
// .as("listItems");
351+
352+
// cy.get("@listItems")
353+
// .last()
354+
// .realClick();
355+
356+
// cy.get("@popover")
357+
// .find("[slot='header']")
358+
// .should('contain.text', 'Next X');
359+
360+
// cy.get("@popover")
361+
// .find("[ui5-step-input]")
362+
// .as("stepInput");
363+
364+
// cy.get("@stepInput")
365+
// .shadow()
366+
// .find("[ui5-input]")
367+
// .shadow()
368+
// .find("input")
369+
// .as("stepInputInner");
370+
371+
// cy.get("@stepInputInner")
372+
// .clear()
373+
// .realType('3');
374+
375+
// cy.get("@stepInputInner")
376+
// .realPress("Enter");
377+
378+
// cy.get("@popover")
379+
// .find(".ui5-ddr-current-value")
380+
// .should('contain.text', 'Selected:');
381+
382+
// cy.get("@ddr")
383+
// .ui5DynamicDateRangeSubmit();
384+
385+
// cy.get("@innerInput")
386+
// .should('have.value', 'Next 3 Weeks');
387+
// });
388388

389389
it('validates text input for Last X Months and parses correctly', () => {
390390
cy.get('[ui5-dynamic-date-range]')

0 commit comments

Comments
 (0)