|
33 | 33 | { "type": "copy", "source": "shared\\folder_zzz\\test_alphabetical.txt", "destination": "test_alphabetical.txt", "priority": 0 }, |
34 | 34 | { "type": "enableallplugins", "priority": 0 } |
35 | 35 | ] |
| 36 | + }, |
| 37 | + { |
| 38 | + "name": "Invisible Step - Preset mode should skip invisible steps (Option A selected)", |
| 39 | + "mod": "Invisible Step Test", |
| 40 | + "archiveFile": "InvisibleStepTest.zip", |
| 41 | + "pluginPath": "Data", |
| 42 | + "appVersion": "1.0.0", |
| 43 | + "gameVersion": "1.0.0", |
| 44 | + "extenderVersion": "1.0.0", |
| 45 | + "installedPlugins": [], |
| 46 | + "preset": [ |
| 47 | + { |
| 48 | + "name": "Step1", |
| 49 | + "groups": [ |
| 50 | + { |
| 51 | + "name": "Group1", |
| 52 | + "choices": [ |
| 53 | + { "name": "Option A (hides Step 2)", "idx": 0 } |
| 54 | + ] |
| 55 | + } |
| 56 | + ] |
| 57 | + } |
| 58 | + ], |
| 59 | + "validate": true, |
| 60 | + "expectedMessage": "Installation successful", |
| 61 | + "expectedInstructions": [ |
| 62 | + { "type": "copy", "source": "visible_step\\visible_file.txt", "destination": "visible_file.txt", "priority": 0 }, |
| 63 | + { "type": "enableallplugins", "priority": 0 } |
| 64 | + ] |
| 65 | + }, |
| 66 | + { |
| 67 | + "name": "Invisible Step - Preset mode should process visible steps (Option B selected)", |
| 68 | + "mod": "Invisible Step Test", |
| 69 | + "archiveFile": "InvisibleStepTest.zip", |
| 70 | + "pluginPath": "Data", |
| 71 | + "appVersion": "1.0.0", |
| 72 | + "gameVersion": "1.0.0", |
| 73 | + "extenderVersion": "1.0.0", |
| 74 | + "installedPlugins": [], |
| 75 | + "preset": [ |
| 76 | + { |
| 77 | + "name": "Step1", |
| 78 | + "groups": [ |
| 79 | + { |
| 80 | + "name": "Group1", |
| 81 | + "choices": [ |
| 82 | + { "name": "Option B (shows Step 2)", "idx": 1 } |
| 83 | + ] |
| 84 | + } |
| 85 | + ] |
| 86 | + }, |
| 87 | + { |
| 88 | + "name": "Step2", |
| 89 | + "groups": [ |
| 90 | + { |
| 91 | + "name": "InvisibleGroup", |
| 92 | + "choices": [ |
| 93 | + { "name": "Invisible Option", "idx": 0 } |
| 94 | + ] |
| 95 | + } |
| 96 | + ] |
| 97 | + } |
| 98 | + ], |
| 99 | + "validate": true, |
| 100 | + "expectedMessage": "Installation successful", |
| 101 | + "expectedInstructions": [ |
| 102 | + { "type": "copy", "source": "visible_step\\visible_file.txt", "destination": "visible_file.txt", "priority": 0 }, |
| 103 | + { "type": "copy", "source": "invisible_step\\should_not_install.txt", "destination": "should_not_install.txt", "priority": 0 }, |
| 104 | + { "type": "enableallplugins", "priority": 0 } |
| 105 | + ] |
36 | 106 | } |
37 | 107 | ] |
38 | 108 | } |
0 commit comments