Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d7f2f04226 |
No files matched your search
@@ -2353,7 +2353,7 @@
|
||||
}
|
||||
}
|
||||
|
||||
function updateCliCommandPreview() {
|
||||
window.updateCliCommandPreview = function() {
|
||||
const preview = document.getElementById('cli-constructed-cmd');
|
||||
const execBtn = document.getElementById('cli-exec-btn');
|
||||
if (!preview || !execBtn) return;
|
||||
@@ -2407,7 +2407,7 @@
|
||||
|
||||
preview.textContent = parts.join(' ');
|
||||
execBtn.disabled = !canExecute;
|
||||
}
|
||||
};
|
||||
|
||||
window.executeCliConsoleCommand = async function() {
|
||||
const execBtn = document.getElementById('cli-exec-btn');
|
||||
|
||||
@@ -124,6 +124,13 @@ async fn test_ui_spa_index_and_stylesheet_endpoints() {
|
||||
assert!(html.contains("openClientExportModal"));
|
||||
assert!(html.contains("openAddPeerModal"));
|
||||
|
||||
// CLI console global preview and handler exposure
|
||||
assert!(html.contains("window.updateCliCommandPreview"));
|
||||
assert!(html.contains("window.onCliCommandChange"));
|
||||
assert!(html.contains("window.onCliSubcommandChange"));
|
||||
assert!(html.contains("window.onCliSubSubcommandChange"));
|
||||
assert!(html.contains("window.executeCliConsoleCommand"));
|
||||
|
||||
// Peer enrollment must submit the selected Network UUID as network_id,
|
||||
// never the display name or CIDR.
|
||||
assert!(html.contains(r#"value="${n.id}""#));
|
||||
|
||||
Reference in new issue
Block a user