High-performance browser automation bridge and multi-instance orchestrator with advanced stealth injection and real-time dashboard.
fix(e2e): use tabId from navigate response instead of get_last_tab
Bosch1fe46fc896b1
diff --git a/tests/e2e/scenarios/04-tabs-api.sh b/tests/e2e/scenarios/04-tabs-api.shindex 233e3bb8..82acab23 100755--- a/tests/e2e/scenarios/04-tabs-api.sh+++ b/tests/e2e/scenarios/04-tabs-api.sh@@ -6,14 +6,10 @@ source "$(dirname "$0")/common.sh"# ─────────────────────────────────────────────────────────────────start_test "pinchtab snap --tab <id> (regression #207)"-# Create a tab+# Create a tab and capture its ID from the navigate responsept_post /navigate -d "{\"url\":\"${FIXTURES_URL}/index.html\"}"-show_tab "created" "$(get_tab_id)"--# Get tab ID from /tabs endpoint-pt_get /tabs-TAB_ID=$(get_last_tab)-show_tab "listed" "$TAB_ID"+TAB_ID=$(get_tab_id)+show_tab "created" "$TAB_ID"# Test: /tabs/{id}/snapshot should work (was broken in #207)pt_get "/tabs/${TAB_ID}/snapshot"