diff --git a/tests/Integration/divi-read-smoke.sh b/tests/Integration/divi-read-smoke.sh index 14d0864..3c32604 100755 --- a/tests/Integration/divi-read-smoke.sh +++ b/tests/Integration/divi-read-smoke.sh @@ -64,7 +64,8 @@ pass "lit-divi-outline: path IDs, tree_rev, rev" # 3. Node in full form plus short-form values NODE=$(tool lit-divi-node-get "{\"post_id\":$PAGE_ID,\"id\":\"s0.r0.c0.m0\"}") -echo "$NODE" | jq -e '.type == "divi/heading" and .shortform.text == "Handwerk mit Herz"' >/dev/null || fail "node-get: $NODE" +echo "$NODE" | jq -e '.type == "heading" and .shortform.text == "Handwerk mit Herz"' >/dev/null || fail "node-get: $NODE" +echo "$NODE" | jq -e '.rev | length == 12' >/dev/null || fail "node-get rev: $NODE" echo "$NODE" | jq -e '.attrs["title.innerContent"].desktop.value == "Handwerk mit Herz"' >/dev/null || fail "node-get attrs: $NODE" MISSING=$(tool lit-divi-node-get "{\"post_id\":$PAGE_ID,\"id\":\"s9\"}") [ "$(error_code "$MISSING")" = "not_found" ] || fail "unknown node: $MISSING"