v0.33.4
This commit is contained in:
1 parent
de090d20fa
commit
c6486bfe85
16 files changed
+254
-104
No files matched your search
@@ -98,7 +98,7 @@ with sync_playwright() as p:
|
||||
assert '/s' in state['top'], state
|
||||
assert state['layoutWidth'] <= state['screenWidth'] + 2, (width, state)
|
||||
assert not errors, (width, errors)
|
||||
# Exercise the Web Server per-service accordion with the same status,
|
||||
# Exercise the always-visible per-service metrics with the same status,
|
||||
# without any real HTTP/PHP request or extra polling.
|
||||
details = page.evaluate("""(status) => {
|
||||
envelope = { revision: 10, config: {
|
||||
@@ -110,11 +110,11 @@ with sync_playwright() as p:
|
||||
window.rustProxyWebServer.render();
|
||||
const detail = document.querySelector('#web-service-list .www-service-panel');
|
||||
if (!detail) return { missing: true };
|
||||
detail.open = true;
|
||||
window.rustProxyWebServer.renderLive(status, false);
|
||||
return { text: detail.textContent, rows: detail.querySelectorAll('[data-web-live-field]').length };
|
||||
return { text: detail.textContent, rows: detail.querySelectorAll('[data-web-live-field]').length,
|
||||
alwaysVisible: detail.tagName === 'SECTION' && !detail.querySelector('summary') };
|
||||
}""", second)
|
||||
assert not details.get('missing') and details['rows'] == 7, (width, details)
|
||||
assert not details.get('missing') and details['rows'] == 7 and details['alwaysVisible'], (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.
|
||||
@@ -129,7 +129,7 @@ with sync_playwright() as p:
|
||||
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)])
|
||||
}""", [observation(2), observation(3), observation(10), observation(12)])
|
||||
assert continuity['before'] == continuity['during'], (width, continuity)
|
||||
assert continuity['unavailable'] == '-', (width, continuity)
|
||||
assert continuity['resumedRate'] != '-', (width, continuity)
|
||||
@@ -146,7 +146,7 @@ with sync_playwright() as p:
|
||||
}""")
|
||||
assert old == {'rate': '-', 'status': '-', 'top': 0}, (width, old)
|
||||
assert not errors, (width, errors)
|
||||
print(f'PASS simulated Web Server cards and service accordion at {width}px: {state["rps"]}, {state["php"]}, layout {state["layoutWidth"]}px')
|
||||
print(f'PASS simulated Web Server cards and always-visible service metrics at {width}px: {state["rps"]}, {state["php"]}, layout {state["layoutWidth"]}px')
|
||||
page.close()
|
||||
browser.close()
|
||||
print('PASS production JS bundle + all twelve visible WWW widgets (simulated data only)')
|
||||
Reference in new issue
Block a user