Skip to content

Commit 5c9b84d

Browse files
committed
Fix failing theme editor tests and expose applyTheme API
- Added applyTheme function to JavaScript editor API in runtime.rs - Fixed test_color_prompt_shows_suggestions to properly navigate to color field before pressing Enter - Fixed test_theme_applied_immediately_after_save to complete the prompt flow (type theme name and confirm)
1 parent 7a2ee07 commit 5c9b84d

File tree

2 files changed

+178
-196
lines changed

2 files changed

+178
-196
lines changed

src/services/plugins/runtime.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2803,6 +2803,11 @@ impl TypeScriptRuntime {
28032803
core.ops.op_fresh_debug(message);
28042804
},
28052805
2806+
// Theme operations
2807+
applyTheme(themeName) {
2808+
return core.ops.op_fresh_apply_theme(themeName);
2809+
},
2810+
28062811
// Clipboard
28072812
copyToClipboard(text) {
28082813
core.ops.op_fresh_set_clipboard(text);

0 commit comments

Comments
 (0)