-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Labels
Description
Target Feature/Component
PreparationFormCreateList component which handles the display and management of the preparation steps list, including reordering, editing, and adding new steps.
Type of Test
Please select the type of test needed:
- Unit Test
- Widget Test
- Integration Test
- Golden Test
Test Scenarios
List the specific scenarios or cases that should be covered:
- Basic Rendering: Verify that the component renders the correct number of preparation steps provided in
preparationNameState.preparationStepList. - List Mode Toggle: Verify that
PreparationFormReorderableListDismissiblerenders whenenableDismissibleistrue, andPreparationFormReorderableListrenders whenfalse. - Adding State: Verify that the input field (
PreparationFormListField) appears only whenpreparationNameState.statusisPreparationFormStatus.adding. - Interaction - Creation: Verify that
onCreationRequestedis called when theCreateIconButtonis tapped. - Interaction - Reordering & Editing: Verify that interacting with the list items triggers the appropriate BLoC events:
- Time changes should add
PreparationFormPreparationStepTimeChanged. - Reordering should add
PreparationFormPreparationStepOrderChanged.
- Time changes should add
Additional Context
- This widget depends on
PreparationFormBlocandPreparationStepFormCubit. - Tests will require wrapping the widget in a
BlocProviderwith mocked instances of these BLoCs to verify event dispatching.