test: retain radio schema and voice mutation checks after formatting

This commit is contained in:
Sameh Khamis committed 2026-09-12 13:01:49 -07:00
1 parent a64a622b6d
commit 233285fe12
2 files changed
+5 -5

No files matched your search

+1 -1
View File
@@ -276,7 +276,7 @@ test('panel collapse is presentation-only and Radio exposes explicit voice playb
assert.match(voice, /'radio-panel'/);
assert.match(voice, /'radio'/);
assert.match(voice, /name:\s*'control_radio'/);
assert.match(voice, /enum:\s*\['enable', 'disable', 'play', 'resume', 'pause', 'stop', 'next', 'previous', 'volume', 'select', 'status'\]/);
assert.deepEqual(realtimeTools().find(tool => tool.name === 'control_radio').parameters.properties.action.enum, ['enable', 'disable', 'play', 'resume', 'pause', 'stop', 'next', 'previous', 'volume', 'select', 'status']);
const enableStart = ui.lastIndexOf('\n _initRadioPanel()');
const enableMethod = ui.slice(enableStart, ui.indexOf('\n _renderRadioState(state)', enableStart));
assert.doesNotMatch(enableMethod, /playSelectedRadio|togglePlayback\(\).*radio-enable/i);