Call this InteractorConstructor to initialize a calendar Interactor.
The calendar interactor can be used to interact with calendars on the page and
to assert on their state.
The calendar is located by selected day and title text divided by space (ex. '18 August 2014').
Example
awaitCalendar('18 August 2014').setDay(13); awaitCalendar('18 August 2014').has({ weekDay:'Mo' }); awaitCalendar({ title:'August 2014', day:18 }).exists();
Filters
title: string – Filter by title
year: number – Filter by year
month: string – Filter by month
day: number – Filter by day
weekDay: string – Filter by weekDay
Actions
nextMonth(): Interaction – Switch calendar view to the next month
prevMonth(): Interaction – Switch calendar view to the previous month
setYear(value: number): Interaction – Switch calendar view to the target year
setMonth(value: string): Interaction – Switch calendar view to the target month
setDay(value: number): Interaction – Set a new date for calendar with previously selected year and month
Call this InteractorConstructor to initialize a calendar Interactor. The calendar interactor can be used to interact with calendars on the page and to assert on their state.
The calendar is located by selected day and title text divided by space (ex. '18 August 2014').
Example
Filters
title
: string – Filter by titleyear
: number – Filter by yearmonth
: string – Filter by monthday
: number – Filter by dayweekDay
: string – Filter by weekDayActions
nextMonth()
: Interaction – Switch calendar view to the next monthprevMonth()
: Interaction – Switch calendar view to the previous monthsetYear(value: number)
: Interaction – Switch calendar view to the target yearsetMonth(value: string)
: Interaction – Switch calendar view to the target monthsetDay(value: number)
: Interaction – Set a new date for calendar with previously selected year and month