Skip to content

Commit 69b919e

Browse files
committed
Fixed sdk interactions being missed
1 parent d35b482 commit 69b919e

File tree

2 files changed

+16
-5
lines changed

2 files changed

+16
-5
lines changed

src/test/standard-workspace.test.ts

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -140,17 +140,21 @@ suite("Standard Workspace Test Suite", () => {
140140
{ type: 'quickpick', value: 'minimal', description: 'Select minimal manifest' },
141141
{ type: 'quickpick', value: 'stm32', description: 'Select STM32 toolchain' },
142142
{ type: 'quickpick', value: 'v4.2.0', description: 'Select default configuration' },
143-
{ type: 'input', value: '', description: 'Select additional west init args' },
144-
{ type: 'quickpick', value: 'automatic', description: 'Select SDK Version' },
145-
{ type: 'quickpick', value: 'select specific', description: 'Select specific toolchains' },
146-
{ type: 'quickpick', value: 'arm-zephyr-eabi', description: 'Select ARM toolchain', multiSelect: true }
143+
{ type: 'input', value: '', description: 'Select additional west init args' }
147144
]);
148145

149146
result = await vscode.commands.executeCommand(
150147
"zephyr-ide.workspace-setup-standard"
151148
);
152149
assert.ok(result, "Workspace setup should succeed");
153150

151+
152+
uiMock.primeInteractions([
153+
{ type: 'quickpick', value: 'automatic', description: 'Select SDK Version' },
154+
{ type: 'quickpick', value: 'select specific', description: 'Select specific toolchains' },
155+
{ type: 'quickpick', value: 'arm-zephyr-eabi', description: 'Select ARM toolchain', multiSelect: true }
156+
]);
157+
154158
await monitorWorkspaceSetup();
155159

156160
console.log("📁 Step 4: Creating project from template...");

src/test/workspace-out-of-tree.test.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,8 @@ suite("Workspace Out Of Tree Test Suite", () => {
128128
{ type: 'quickpick', value: 'minimal', description: 'Select minimal manifest' },
129129
{ type: 'quickpick', value: 'stm32', description: 'Select STM32 toolchain' },
130130
{ type: 'quickpick', value: 'v4.2.0', description: 'Select default configuration' },
131-
{ type: 'input', value: '', description: 'Select additional west init args' }
131+
{ type: 'input', value: '', description: 'Select additional west init args' },
132+
132133

133134
]);
134135

@@ -138,6 +139,12 @@ suite("Workspace Out Of Tree Test Suite", () => {
138139
);
139140
assert.ok(result, "Git workspace setup should succeed");
140141

142+
143+
uiMock.primeInteractions([
144+
{ type: 'quickpick', value: 'automatic', description: 'Select SDK Version' },
145+
{ type: 'quickpick', value: 'select specific', description: 'Select specific toolchains' },
146+
{ type: 'quickpick', value: 'arm-zephyr-eabi', description: 'Select ARM toolchain', multiSelect: true }
147+
]);
141148
await monitorWorkspaceSetup("workspace out of tree");
142149

143150
console.log("⚡ Step 2: Executing build...");

0 commit comments

Comments
 (0)