Formwright
    Preparing search index...

    Drives a power-select or power-select-multiple field with power-select's own test helpers:

    class OwnerForm extends FormHarness {
    @field(PowerSelectHarness) declare owner: PowerSelectHarness
    }

    await form.owner.search('ada')
    await form.owner.select('Ada Lovelace')
    assert.deepEqual(form.owner.selected, ['Ada Lovelace'])

    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