@payfit/unity-components
Version:
20 lines (19 loc) • 613 B
TypeScript
import { PlayCtx } from '../../types/testing.js';
import { CalendarDate } from '@internationalized/date';
/**
* Factory to get date range picker testing utils
* @param context the story context
*/
export declare const getTestingUtilsDateRangePicker: (context: PlayCtx) => {
fillCalendarDateRange: ({ labelText, startDate, endDate, }: {
labelText: string;
startDate: CalendarDate;
endDate: CalendarDate;
}) => Promise<void>;
getCalendarDateRangeValue: ({ labelText }: {
labelText: string;
}) => {
start: CalendarDate;
end: CalendarDate;
};
};