v0.33.3_hotfix

This commit is contained in:
Mateusz Gruszczyński committed 2026-10-15 13:50:14 +02:00
1 parent 78ad28ef4d
commit de090d20fa
7 files changed
+162 -11

No files matched your search

+18
View File
@@ -116,6 +116,24 @@ with sync_playwright() as p:
}""", second)
assert not details.get('missing') and details['rows'] == 7, (width, details)
assert '18 / 32' in details['text'], (width, details)
# The first reading after an overdue browser interval must establish a
# fresh baseline without adding a fake 0/s dip to the service chart.
continuity = page.evaluate("""([first, second, paused, resumed]) => {
const api = window.rustProxyWebServer;
const chart = document.querySelector('#web-service-list [data-web-live-id="site-A"] polyline');
const rate = document.querySelector('#web-service-list [data-web-live-field="rate"]');
window.__clock = 5000; api.renderLive(first);
window.__clock = 8000; api.renderLive(second);
const before = chart.getAttribute('points');
window.__clock = 100000; api.renderLive(paused);
const during = chart.getAttribute('points'), unavailable = rate.textContent;
window.__clock = 103000; api.renderLive(resumed);
return { before, during, unavailable, after: chart.getAttribute('points'), resumedRate: rate.textContent };
}""", [observation(2), observation(3), observation(10), observation(11)])
assert continuity['before'] == continuity['during'], (width, continuity)
assert continuity['unavailable'] == '-', (width, continuity)
assert continuity['resumedRate'] != '-', (width, continuity)
assert continuity['after'] != continuity['before'], (width, continuity)
assert not errors, (width, errors)
old = page.evaluate("""() => {
currentPanel = 'overview';