feat(vwb): add dashboard competence testing and health tools

This commit is contained in:
Dom
2026-06-02 16:27:19 +02:00
parent d38f0b0f2f
commit 18ed6cb751
23 changed files with 2769 additions and 27 deletions

View File

@@ -63,6 +63,16 @@ class TestDashboardRoutes:
assert 'competences' in data
assert 'items' in data['competences']
def test_knowledge_base_page_includes_test_safety_guards(self, client):
"""Le bouton Tester embarque les garde-fous Win+R et evidence vide."""
resp = client.get('/knowledge-base')
assert resp.status_code == 200
html = resp.get_data(as_text=True)
assert 'confirmRunDialogReplay' in html
assert 'peut ouvrir Win+R / Exécuter' in html
assert 'hasReplayEvidence' in html
assert 'Verdict valide refusé' in html
def test_dashboard_replay_competence_proxy(self, client, monkeypatch):
"""Le dashboard lance un replay competence supervise via streaming."""
calls = []