Skip to content

Setup/fix testing framework for KPI frontend components #528

@umangzala-oc

Description

@umangzala-oc

Fix test cases for required field validation and update default values.

Added 9 new unit test files covering the complete "add question" flow in the XLForm builder, from the empty form UI through question type selection, form field rendering, skip logic, and validation criteria.

UI Flow: Empty form → + button → name input → type picker → question card
All 13 Question Types: text, select_one, select_multiple, integer, decimal, date, note, file, image, audio, video, calculate, select_one_from_file
All Form Fields: Item Name, Item Group, Item Brief Description, Item Description, Appearance, Required, Read only, Default value, Calculation, Calculation trigger, Use External Value
Skip Logic: All operators, expression parser, CSV round-trip with relevant
Validation Criteria: All operators, expression parser, CSV round-trip with constraint/constraint_message

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions