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 preview = document.getElementById('cli-constructed-cmd');
|
||||||
const execBtn = document.getElementById('cli-exec-btn');
|
const execBtn = document.getElementById('cli-exec-btn');
|
||||||
if (!preview || !execBtn) return;
|
if (!preview || !execBtn) return;
|
||||||
@@ -2407,7 +2407,7 @@
|
|||||||
|
|
||||||
preview.textContent = parts.join(' ');
|
preview.textContent = parts.join(' ');
|
||||||
execBtn.disabled = !canExecute;
|
execBtn.disabled = !canExecute;
|
||||||
}
|
};
|
||||||
|
|
||||||
window.executeCliConsoleCommand = async function() {
|
window.executeCliConsoleCommand = async function() {
|
||||||
const execBtn = document.getElementById('cli-exec-btn');
|
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("openClientExportModal"));
|
||||||
assert!(html.contains("openAddPeerModal"));
|
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,
|
// Peer enrollment must submit the selected Network UUID as network_id,
|
||||||
// never the display name or CIDR.
|
// never the display name or CIDR.
|
||||||
assert!(html.contains(r#"value="${n.id}""#));
|
assert!(html.contains(r#"value="${n.id}""#));
|
||||||
|
|||||||
Reference in new issue
Block a user