UI update changed
This commit is contained in:
@@ -113,12 +113,42 @@ def test_dashboard_chat_sessions_use_delegated_handlers():
|
||||
tracker.stop()
|
||||
|
||||
assert "bindChatSessionList" in html
|
||||
assert "data-session-id=" in html
|
||||
assert "data-delete-session=" in html
|
||||
assert "dataset.sessionId" in html
|
||||
assert "dataset.deleteSession" in html
|
||||
assert '[data-session-id]' in html
|
||||
assert 'onclick="selectChatSession(' not in html
|
||||
assert 'onclick="deleteChatSession(' not in html
|
||||
|
||||
|
||||
def test_dashboard_incremental_refresh_helpers():
|
||||
tracker = TrackerServer()
|
||||
port = tracker.start()
|
||||
try:
|
||||
html = urllib.request.urlopen(
|
||||
f"http://127.0.0.1:{port}/dashboard"
|
||||
).read().decode()
|
||||
finally:
|
||||
tracker.stop()
|
||||
|
||||
assert "renderIfChanged" in html
|
||||
assert "syncKeyedList" in html
|
||||
assert "refreshBlocked" in html
|
||||
assert "patchAccountPanelView" in html
|
||||
assert "buildAccountPanelShell" in html
|
||||
assert "refreshActiveTab" in html
|
||||
assert "TAB_FETCHERS" in html
|
||||
assert "loadAccountSummary" in html
|
||||
assert "loadAccountUsage" in html
|
||||
assert "fetchOverviewTab" in html
|
||||
assert "pollCallWallIfIdle" in html
|
||||
assert "pendingChatModelRefresh" in html
|
||||
assert 'renderChatHistory(true)' in html
|
||||
assert "renderChatHistory();" not in html
|
||||
assert "refreshIfIdle" not in html
|
||||
assert "refreshAccountIfIdle" not in html
|
||||
assert "setInterval(refreshIfIdle" not in html
|
||||
|
||||
|
||||
def test_dashboard_served_by_follower():
|
||||
"""A tracker that is not the leader (unreachable peers → never elected)
|
||||
still serves the dashboard from its own replicated state."""
|
||||
|
||||
Reference in New Issue
Block a user