High-performance browser automation bridge and multi-instance orchestrator with advanced stealth injection and real-time dashboard.
fix: e2e test issue
Luigi Agostib7bce373874c
diff --git a/tests/e2e/scenarios-api/auth-full.sh b/tests/e2e/scenarios-api/auth-full.shindex 01a5fe0c..0f81ba7f 100644--- a/tests/e2e/scenarios-api/auth-full.sh+++ b/tests/e2e/scenarios-api/auth-full.sh@@ -240,7 +240,7 @@ start_test "auth: cookie session cannot use download endpoint"auth_reset_sessionauth_post_json /api/auth/login "{\"token\":\"${E2E_SERVER_TOKEN}\"}"assert_http_status 200 "login succeeds"-auth_get "/download?url=https://httpbin.org/robots.txt" -H "Origin: ${E2E_SERVER}"+auth_get "/download?url=${FIXTURES_URL}/sample.txt" -H "Origin: ${E2E_SERVER}"assert_http_status 403 "cookie session blocked on download endpoint"assert_contains "$RESULT" "header_auth_required" "download requires authorization header"@@ -256,7 +256,7 @@ assert_ok "navigate for tab download auth boundary"auth_reset_sessionauth_post_json /api/auth/login "{\"token\":\"${E2E_SERVER_TOKEN}\"}"assert_http_status 200 "login succeeds"-auth_get "/tabs/${DOWNLOAD_TAB_ID}/download?url=https://httpbin.org/robots.txt" -H "Origin: ${E2E_SERVER}"+auth_get "/tabs/${DOWNLOAD_TAB_ID}/download?url=${FIXTURES_URL}/sample.txt" -H "Origin: ${E2E_SERVER}"assert_http_status 403 "cookie session blocked on download endpoint"assert_contains "$RESULT" "header_auth_required" "download requires authorization header"diff --git a/tests/e2e/scenarios-api/files-basic.sh b/tests/e2e/scenarios-api/files-basic.shindex e8981ae0..0ab2df7f 100644--- a/tests/e2e/scenarios-api/files-basic.sh+++ b/tests/e2e/scenarios-api/files-basic.sh@@ -113,8 +113,8 @@ build_download_redirect_url() {# ─────────────────────────────────────────────────────────────────start_test "pinchtab download (public URL)"-# Use a small public file for testing-pt_get "/download?url=https://httpbin.org/robots.txt"+# Use a small local fixture file so the test is self-contained.+pt_get "/download?url=${FIXTURES_URL}/sample.txt"assert_ok "download public"end_test@@ -145,7 +145,7 @@ start_test "pinchtab download --tab <id>"pt_get /tabsTAB_ID=$(get_first_tab)-pt_get "/tabs/${TAB_ID}/download?url=https://httpbin.org/robots.txt"+pt_get "/tabs/${TAB_ID}/download?url=${FIXTURES_URL}/sample.txt"assert_ok "tab download"end_testdiff --git a/tests/e2e/scenarios-api/security-full.sh b/tests/e2e/scenarios-api/security-full.shindex 48241bb4..bf04eb3b 100644--- a/tests/e2e/scenarios-api/security-full.sh+++ b/tests/e2e/scenarios-api/security-full.sh@@ -47,7 +47,7 @@ end_test# ─────────────────────────────────────────────────────────────────start_test "security: download BLOCKED when disabled"-secure_get "/download?url=https://httpbin.org/robots.txt"+secure_get "/download?url=${FIXTURES_URL}/sample.txt"assert_http_status 403 "download blocked"assert_contains "$RESULT" "download_disabled" "correct error code"diff --git a/tests/e2e/scenarios-cli/files-basic.sh b/tests/e2e/scenarios-cli/files-basic.shindex 6051d469..d024a215 100644--- a/tests/e2e/scenarios-cli/files-basic.sh+++ b/tests/e2e/scenarios-cli/files-basic.sh@@ -40,7 +40,7 @@ end_test# ─────────────────────────────────────────────────────────────────start_test "pinchtab download (public URL)"-pt_ok download "https://httpbin.org/robots.txt"+pt_ok download "${FIXTURES_URL}/sample.txt"assert_output_contains "data" "response contains download data"end_test@@ -48,7 +48,7 @@ end_test# ─────────────────────────────────────────────────────────────────start_test "pinchtab download (save to file)"-pt_ok download "https://httpbin.org/robots.txt" -o /tmp/e2e-download-test.txt+pt_ok download "${FIXTURES_URL}/sample.txt" -o /tmp/e2e-download-test.txtif [ -f /tmp/e2e-download-test.txt ]; thenecho -e " ${GREEN}✓${NC} file saved"((ASSERTIONS_PASSED++)) || true