Skip to content

Commit 5d7bbd5

Browse files
authored
Updating test names for clarity (#6161)
1 parent 12f2f4e commit 5d7bbd5

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

packages/@react-spectrum/calendar/test/RangeCalendar.test.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -693,7 +693,7 @@ describe('RangeCalendar', () => {
693693
expect(end).toEqual(new CalendarDate(2019, 6, 20));
694694
});
695695

696-
it('allow touch-scroll thought calendar by onto a day and then finalize selection', async () => {
696+
it('selection isn\'t prematurely finalized when touching a day cell to scroll through the calendar', async () => {
697697
let onChange = jest.fn();
698698

699699
let {getAllByLabelText, getByText} = render(
@@ -730,7 +730,7 @@ describe('RangeCalendar', () => {
730730
});
731731
});
732732

733-
it('allow touch-scroll thought calendar by onto a disabled day and then finalize selection', async () => {
733+
it('selection isn\'t prematurely finalized when touching a disabled day cell to scroll through the calendar', async () => {
734734
let onChange = jest.fn();
735735

736736
let {getAllByLabelText, getByText} = render(
@@ -767,7 +767,7 @@ describe('RangeCalendar', () => {
767767
});
768768
});
769769

770-
it('allow touch-scroll thought calendar by onto a weekday and then finalize selection', async () => {
770+
it('selection isn\'t prematurely finalized when touching a weekday header to scroll through the calendar', async () => {
771771
let onChange = jest.fn();
772772

773773
let {getAllByLabelText, getByText} = render(
@@ -804,7 +804,7 @@ describe('RangeCalendar', () => {
804804
});
805805
});
806806

807-
it('allow touch-scroll thought calendar by onto a heading and then finalize selection', async () => {
807+
it('selection isn\'t prematurely finalized when touching the header to scroll through the calendar', async () => {
808808
let onChange = jest.fn();
809809

810810
let {getAllByLabelText, getByText, getByRole} = render(

0 commit comments

Comments
 (0)