High-performance browser automation bridge and multi-instance orchestrator with advanced stealth injection and real-time dashboard.
refactor: split E2E test folders — scenarios-curl and scenarios-recent
Bosch3803c7fbb733
diff --git a/dev b/devindex b9102da8..aa42337c 100755--- a/dev+++ b/dev@@ -131,7 +131,7 @@ run_command() {"e2e")echo " ${ACCENT}${BOLD}🐳 E2E Recent tests (Docker)${NC}"echo ""- docker compose -f tests/e2e/docker-compose.yml run --build --rm runner /scenarios/run-recent.sh+ docker compose -f tests/e2e/docker-compose.yml run --build --rm runner /scenarios-recent/run.shlocal recent_exit=$?if [ $recent_exit -ne 0 ]; thenecho -e "${ERROR} Recent tests failed. Showing pinchtab logs:${NC}"@@ -196,7 +196,7 @@ run_command() {"e2e recent")echo " ${ACCENT}${BOLD}🐳 E2E Recent tests (Docker)${NC}"echo ""- docker compose -f tests/e2e/docker-compose.yml run --build --rm runner /scenarios/run-recent.sh+ docker compose -f tests/e2e/docker-compose.yml run --build --rm runner /scenarios-recent/run.shlocal recent_exit=$?if [ $recent_exit -ne 0 ]; thenecho ""diff --git a/tests/e2e/docker-compose.yml b/tests/e2e/docker-compose.ymlindex a8a743f2..9d6e365d 100644--- a/tests/e2e/docker-compose.yml+++ b/tests/e2e/docker-compose.yml@@ -91,5 +91,6 @@ services:- FIXTURES_URL=http://fixtures:80volumes:- ./scenarios:/scenarios:ro+ - ./scenarios-recent:/scenarios-recent:ro- ./results:/resultscommand: ["/scenarios/run-all.sh"]diff --git a/tests/e2e/scenarios/41-extensions.sh b/tests/e2e/scenarios-recent/41-extensions.shsimilarity index 100%rename from tests/e2e/scenarios/41-extensions.shrename to tests/e2e/scenarios-recent/41-extensions.shdiff --git a/tests/e2e/scenarios/42-lite-engine.sh b/tests/e2e/scenarios-recent/42-lite-engine.shsimilarity index 100%rename from tests/e2e/scenarios/42-lite-engine.shrename to tests/e2e/scenarios-recent/42-lite-engine.shdiff --git a/tests/e2e/scenarios-recent/common.sh b/tests/e2e/scenarios-recent/common.shnew file mode 120000index 00000000..5f1c9ffa--- /dev/null+++ b/tests/e2e/scenarios-recent/common.sh@@ -0,0 +1 @@+../scenarios/common.sh\ No newline at end of filediff --git a/tests/e2e/scenarios/run-recent.sh b/tests/e2e/scenarios-recent/run.shsimilarity index 84%rename from tests/e2e/scenarios/run-recent.shrename to tests/e2e/scenarios-recent/run.shindex 7494cd0e..1edf3d82 100755--- a/tests/e2e/scenarios/run-recent.sh+++ b/tests/e2e/scenarios-recent/run.sh@@ -5,7 +5,8 @@set -uo pipefailSCRIPT_DIR="$(dirname "$0")"-source "${SCRIPT_DIR}/common.sh"+COMMON_DIR="$(dirname "$SCRIPT_DIR")/scenarios"+source "${COMMON_DIR}/common.sh"echo "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"echo -e "${BLUE}PinchTab E2E Recent Tests${NC}"@@ -25,20 +26,13 @@ echo ""# Recent test files — add new scenarios here for fast CI feedback.# Move to the full suite (run-all.sh) once stable.-RECENT_TESTS=(- "41-extensions.sh"- "42-lite-engine.sh"-)--for name in "${RECENT_TESTS[@]}"; do- script="${SCRIPT_DIR}/${name}"+# All test files in this directory run as the recent suite.+for script in "${SCRIPT_DIR}"/[0-9][0-9]-*.sh; doif [ -f "$script" ]; then- echo -e "${YELLOW}Running: ${name}${NC}"+ echo -e "${YELLOW}Running: $(basename "$script")${NC}"echo ""source "$script"echo ""- else- echo -e "${RED}Missing: ${name}${NC}"fidonediff --git a/tests/e2e/scenarios/run-all.sh b/tests/e2e/scenarios/run-all.shindex e3a1abd7..2059b282 100755--- a/tests/e2e/scenarios/run-all.sh+++ b/tests/e2e/scenarios/run-all.sh@@ -19,16 +19,10 @@ wait_for_instance_ready "${PINCHTAB_URL}"wait_for_instance_ready "${PINCHTAB_SECURE_URL}"echo ""-# Tests in run-recent.sh are excluded here to avoid running them twice.-RECENT_ONLY="41-extensions.sh|42-lite-engine.sh"-+# Find and run all test scripts in orderfor script in "${SCRIPT_DIR}"/[0-9][0-9]-*.sh; do- name="$(basename "$script")"- if echo "$name" | grep -qE "^($RECENT_ONLY)$"; then- continue- fiif [ -f "$script" ]; then- echo -e "${YELLOW}Running: ${name}${NC}"+ echo -e "${YELLOW}Running: $(basename "$script")${NC}"echo ""source "$script"echo ""