31 lines
1 KiB
Plaintext
31 lines
1 KiB
Plaintext
# Task 5: Default Arrangement Selection in ProFileGenerator
|
|
## QA Scenario: Fallback to first when no 'normal'
|
|
|
|
### Test Case: testGenerateFallsBackToFirstArrangementWhenNoNormal
|
|
- Generates a song with arrangements ['custom'] only (no 'normal')
|
|
- Writes to .pro file
|
|
- Reads back and verifies 'custom' is selected as fallback
|
|
|
|
### Result: PASS
|
|
- Song generated successfully
|
|
- File written and read back
|
|
- Selected arrangement is 'custom' (first and only arrangement)
|
|
- Fallback logic works correctly
|
|
|
|
### Evidence
|
|
All 12 ProFileGenerator tests pass:
|
|
- testGenerateCreatesValidSong
|
|
- testGenerateWithMultipleGroupsAndArrangements
|
|
- testGenerateWithTranslation
|
|
- testGenerateWithCcliMetadata
|
|
- testRoundTripFromTestPro
|
|
- testGenerateAndWriteCreatesFile
|
|
- testGenerateWithMacro
|
|
- testGenerateMediaSlide
|
|
- testGenerateMediaSlideWithLabelAndMacro
|
|
- testGenerateAttributesAreDisabled
|
|
- testGenerateSelectsNormalArrangementWhenPresent ✓ NEW
|
|
- testGenerateFallsBackToFirstArrangementWhenNoNormal ✓ NEW
|
|
|
|
Total: 12 tests, 82 assertions, 0 failures
|