21 lines
887 B
Python
21 lines
887 B
Python
from pathlib import Path
|
|
|
|
|
|
def test_operator_augmentation_ui_hooks_exist():
|
|
html = Path('index.html').read_text()
|
|
|
|
assert 'id="augmentation-toggle"' in html
|
|
assert 'id="augmentation-sidebar"' in html
|
|
assert 'id="augmentation-risk-score"' in html
|
|
assert 'id="augmentation-signals"' in html
|
|
assert 'id="augmentation-follow-up"' in html
|
|
assert 'door_operator_augmentation_enabled' in html
|
|
assert 'function buildAugmentationState(' in html
|
|
assert 'function renderAugmentationSidebar(' in html
|
|
assert 'function updateAugmentationState(' in html
|
|
assert 'function setOperatorAugmentationEnabled(' in html
|
|
assert 'function loadOperatorAugmentationPreference(' in html
|
|
assert 'getCrisisLevel(userText)' in html
|
|
assert "updateAugmentationState(text, '')" in html
|
|
assert "updateAugmentationState(lastUserMessage || '', fullText)" in html
|