|
@@ -910,4 +910,21 @@ describe('DatePicker', () => {
|
|
|
cy.get('.semi-popover .semi-datepicker-day-selected-start').contains('15');
|
|
|
cy.get('.semi-popover .semi-datepicker-day-selected-end').contains('20');
|
|
|
});
|
|
|
+
|
|
|
+ it('auto Correction month under month range', () => {
|
|
|
+ cy.visit('http://localhost:6006/iframe.html?args=&id=datepicker--fix-2567&viewMode=story');
|
|
|
+ cy.get('.semi-input').eq(0).click();
|
|
|
+ cy.get('.semi-scrolllist').eq(1).contains('2024').click();
|
|
|
+ cy.get('.semi-input').eq(0).should("have.value", "2024-11 ~ 2024-11");
|
|
|
+ cy.root().click('right');
|
|
|
+
|
|
|
+ cy.get('.semi-input').eq(1).click();
|
|
|
+ cy.get('.semi-scrolllist').eq(1).contains('2024').click();
|
|
|
+ cy.get('.semi-input').eq(1).should("have.value", "2024-11 ~ 2024-11");
|
|
|
+ cy.root().click('right');
|
|
|
+
|
|
|
+ cy.get('.semi-input').eq(2).click();
|
|
|
+ cy.get('.semi-scrolllist').eq(0).contains('2025').click();
|
|
|
+ cy.get('.semi-input').eq(2).should("have.value", "2025-01 ~ 2025-01");
|
|
|
+ })
|
|
|
});
|