## Calendar Testkit

### Import

- unidriver: `import { CalendarUniDriver } from '@wix/design-system/dist/testkit/unidriver';`
- vanilla: `import { CalendarTestkit } from '@wix/design-system/dist/testkit';`
- puppeteer: `import { CalendarTestkit } from '@wix/design-system/dist/testkit/puppeteer';`
- playwright: `import { CalendarTestkit } from '@wix/design-system/dist/testkit/playwright';`

### API

### exists
- signature: exists()
- returns: Promise<boolean>
- description: Checks whether the component found with the given data hook.

### element
- signature: element()
- returns: Promise<any>
- description: Gets the component root element.

### click
- signature: click()
- returns: Promise<void>
- description: Clicks on the component root element.

### base
- signature: base()
- returns: UniDriver
- description: Returns UniDriver for the base element.

### close
- signature: close()
- returns: Promise<void>

### getCurrentMonthWithYear
- signature: getCurrentMonthWithYear()
- returns: Promise<string>

### getNthWeekDayName
- signature: getNthWeekDayName(n)
- returns: Promise<string>

### clickOnNthDay
- signature: clickOnNthDay(n)
- returns: Promise<false | void>

### clickDay
- signature: clickDay(date)
- returns: Promise<void>

### isDayActive
- signature: isDayActive(date)
- returns: Promise<boolean>

### clickOnNthDayOfTheMonth
- signature: clickOnNthDayOfTheMonth(n)
- returns: Promise<false | void>

### clickOnSelectedDay
- signature: clickOnSelectedDay()
- returns: Promise<void>

### clickOnYearDropdown
- signature: clickOnYearDropdown()
- returns: Promise<void>

### clickOnMonthDropdown
- signature: clickOnMonthDropdown()
- returns: Promise<void>

### clickOnNthYear
- signature: clickOnNthYear(n)
- returns: Promise<void>

### clickOnPrevMonthButton
- signature: clickOnPrevMonthButton()
- returns: Promise<void>

### clickOnNextMonthButton
- signature: clickOnNextMonthButton()
- returns: Promise<void>

### keyboardNextYear
- signature: keyboardNextYear()
- returns: Promise<void>

### keyboardPrevYear
- signature: keyboardPrevYear()
- returns: Promise<void>

### isHeaderExists
- signature: isHeaderExists()
- returns: Promise<boolean>

### isYearDropdownExists
- signature: isYearDropdownExists()
- returns: Promise<boolean>

### isYearCaptionExists
- signature: isYearCaptionExists()
- returns: Promise<boolean>

### isMonthDropdownExists
- signature: isMonthDropdownExists()
- returns: Promise<boolean>

### isMonthCaptionExists
- signature: isMonthCaptionExists()
- returns: Promise<boolean>

### getMonthCaption
- signature: getMonthCaption()
- returns: Promise<string>

### getMonthDropdownLabel
- signature: getMonthDropdownLabel()
- returns: Promise<string>

### getSelectedYear
- signature: getSelectedYear()
- returns: Promise<string>

### getFocusedDay
- signature: getFocusedDay()
- returns: Promise<string | null>
- description: Returns the text of the focused day or `null` if there is no focused day

### getFocusedDayElement
- signature: getFocusedDayElement()
- returns: UniDriver

### pressLeftArrow
- signature: pressLeftArrow()
- returns: Promise<void>

### pressRightArrow
- signature: pressRightArrow()
- returns: Promise<void>

### getSelectedDay
- signature: getSelectedDay()
- returns: Promise<string>

### triggerKeyDown
- signature: triggerKeyDown(params)
- returns: Promise<void>

### isFocusedDayVisuallyUnfocused
- signature: isFocusedDayVisuallyUnfocused()
- returns: Promise<boolean>

### containsVisuallyUnfocusedDay
- signature: containsVisuallyUnfocusedDay()
- returns: Promise<boolean>

### isTwoMonthsLayout
- signature: isTwoMonthsLayout()
- returns: Promise<boolean>

### getMonthDropdownDriver
- signature: getMonthDropdownDriver()
- returns: Promise<DropdownLayoutUniDriver>

### getYearDropdownDriver
- signature: getYearDropdownDriver()
- returns: Promise<DropdownLayoutUniDriver>

### getNumOfVisibleMonths
- signature: getNumOfVisibleMonths()
- returns: Promise<number>

### getNumOfSelectedDays
- signature: getNumOfSelectedDays()
- returns: Promise<number>

### getSelectedDays
- signature: getSelectedDays()
- returns: Promise<number>
- description: TODO: return `Promise<Date[]>` in the next major release (see docs/major-release.md)

### getSize
- signature: getSize()
- returns: Promise<string>
- description: Returns size property value currently set on component
