Formwright
    Preparing search index...

    Drives a file or files field:

    class ApplicationForm extends FormHarness {
    @field(FileUploadHarness) declare resume: FileUploadHarness
    }

    await form.resume.select(new File(['...'], 'cv.pdf', { type: 'application/pdf' }))
    assert.deepEqual(form.resume.files, ['cv.pdf'])

    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