Skip to content

Commit 0106683

Browse files
authored
test(date-range-picker): Removed flaky test scenario (#1807)
1 parent 9a9dc28 commit 0106683

File tree

1 file changed

+0
-20
lines changed

1 file changed

+0
-20
lines changed

src/components/date-range-picker/date-range-picker-two-inputs.spec.ts

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -634,7 +634,6 @@ describe('Date range picker - two inputs', () => {
634634
it('should set the calendar active date to the altered date of the range while typing', async () => {
635635
const eventSpy = spy(picker, 'emitEvent');
636636
const aMonthAgo = today.add('month', -1);
637-
const twoMonthsAgo = today.add('month', -2);
638637
picker.value = null;
639638
picker.open = true;
640639
await elementUpdated(picker);
@@ -696,25 +695,6 @@ describe('Date range picker - two inputs', () => {
696695
expect(eventSpy).calledWith('igcChange', {
697696
detail: { start: aMonthAgo.native, end: today.native },
698697
});
699-
eventSpy.resetHistory();
700-
701-
checkSelectedRange(picker, {
702-
start: aMonthAgo.native,
703-
end: today.native,
704-
});
705-
checkDatesEqual(calendar.activeDate, aMonthAgo.native);
706-
707-
dateTimeInputs[0].setSelectionRange(0, 1);
708-
simulateKeyboard(dateTimeInputs[0], arrowDown);
709-
await elementUpdated(picker);
710-
711-
expect(eventSpy).calledWith('igcInput');
712-
checkDatesEqual(dateTimeInputs[0].value!, twoMonthsAgo.native);
713-
checkSelectedRange(picker, {
714-
start: twoMonthsAgo.native,
715-
end: today.native,
716-
});
717-
checkDatesEqual(calendar.activeDate, twoMonthsAgo.native);
718698
});
719699

720700
it('should set the calendar active date to the typed date and reflect selection in calendar', async () => {

0 commit comments

Comments
 (0)