M9: lens block, ctrl-p picker, /resume, wide side panel
Closes #78, closes #82, closes #83
This commit is contained in:
1 parent
b3960a09ed
commit
d7aeaf0bb9
11 files changed
+604
-24
No files matched your search
@@ -17,4 +17,13 @@ HOME="$tmp/home" HX_BASE_URL="http://127.0.0.1:$port" "$root/target/debug/hx" -p
|
||||
grep -q "FINISHED lens=clean" "$tmp/out" || { echo "--- out"; cat "$tmp/out"; echo "--- err"; cat "$tmp/err"; exit 1; }
|
||||
grep -q "42" src/lib.rs
|
||||
curl -s "http://127.0.0.1:$port/" | grep -q 'mismatched types'
|
||||
# same run in json mode: the lens report reaches UIs as an `injected` event
|
||||
kill $srv; python3 "$root/tests/fake_lens.py" $port & srv=$!; sleep 0.5
|
||||
git checkout -q -- . 2>/dev/null || rm -f src/lib.rs
|
||||
HOME="$tmp/home" HX_BASE_URL="http://127.0.0.1:$port" "$root/target/debug/hx" -p "add f" --mode json > "$tmp/json" 2> "$tmp/err" || { cat "$tmp/err"; exit 1; }
|
||||
python3 - "$tmp/json" <<'PY' || { echo "FAIL: no injected lens event"; exit 1; }
|
||||
import json, sys
|
||||
ev = [json.loads(l) for l in open(sys.argv[1])]
|
||||
assert any(e["type"] == "injected" and any("[lens]" in t and "mismatched types" in t for t in e["texts"]) for e in ev)
|
||||
PY
|
||||
echo "lens e2e ok"
|
||||
Reference in new issue
Block a user