diff options
Diffstat (limited to 'packages/meshbay-hub/tests')
| -rwxr-xr-x | packages/meshbay-hub/tests/harness/sticky_header_probe.py | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/packages/meshbay-hub/tests/harness/sticky_header_probe.py b/packages/meshbay-hub/tests/harness/sticky_header_probe.py index 6f084d6..7579bf9 100755 --- a/packages/meshbay-hub/tests/harness/sticky_header_probe.py +++ b/packages/meshbay-hub/tests/harness/sticky_header_probe.py @@ -401,7 +401,11 @@ const settle = () => new Promise((r) => .slice(0, 6) .map((el) => (el.tagName.toLowerCase() + '.' + (el.className || '')) .slice(0, 60) + ' →' - + Math.round(el.getBoundingClientRect().right)); + + Math.round(el.getBoundingClientRect().right) + // The text, because the element alone never says which + // cell it was: a column is as wide as its widest + // unwrappable string, and that string is the finding. + + ' ' + JSON.stringify((el.textContent || '').trim().slice(0, 40))); })(), innerHeight, innerWidth, // What the stylesheet was actually handed, so a wrong offset can be told @@ -487,6 +491,18 @@ class H(http.server.BaseHTTPRequestHandler): self._send(render_frame(index).encode(), "text/html; charset=utf-8") elif path == "/v1/groups/g1/nodes": self._send(b'{"nodes": [{"node_id": "n1"}]}', "application/json") + elif path == "/v1/groups/g1/members": + # Served at all because an empty table measures only its headers, + # and a member's name is a string this project did not choose. One + # of them has no spaces to break at, which is what makes a cell set + # its column's minimum width — the fault already recorded against + # the Files table, one table along. + self._send( + b'{"members": [' + b'{"user_id": "u1", "username": "moi"},' + b'{"user_id": "u2", "username":' + b' "un_utilisateur_au_nom_deraisonnablement_long_2026"}]}', + "application/json") else: asset = (STATIC / path.lstrip("/")).resolve() if not str(asset).startswith(str(STATIC)) or not asset.is_file(): |