Formwright
    Preparing search index...

    Drives a phone field (@ember-formwright/maskito/phone):

    class ContactForm extends FormHarness {
    @field(PhoneHarness) declare phone: PhoneHarness
    }

    await form.phone.fillIn('2125550123')
    assert.strictEqual(form.phone.value, '+1 212 555-0123')

    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

    • Replaces the text, as a paste or autofill would, and lets the mask shape it. Maskito handles the change, so the field stores what the mask kept.

      Parameters

      • text: string

      Returns Promise<void>