Formwright
    Preparing search index...

    Drives a date-picker or date-range field the way a user would: open the calendar, page to the month, click the day.

    class TripForm extends FormHarness {
    @field(DatePickerHarness) declare departure: DatePickerHarness
    @field(DatePickerHarness) declare stay: DatePickerHarness
    }

    await trip.departure.select('2026-03-04')
    await trip.stay.selectRange('2026-03-04', '2026-03-09')
    assert.strictEqual(trip.departure.text, 'Mar 4, 2026')

    Hierarchy (View Summary)

    Index
    path: string
    controls: string[]

    Control names (data-test-fw-type) this harness can drive; empty means any.

    • get control(): HTMLElement

      The element the field's

      Returns HTMLElement

    • get displayText(): string | undefined

      The inline value shown before editing (@inline forms).

      Returns string | undefined