Skip to content

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/dev
index 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.sh
local recent_exit=$?
if [ $recent_exit -ne 0 ]; then
echo -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.sh
local recent_exit=$?
if [ $recent_exit -ne 0 ]; then
echo ""
diff --git a/tests/e2e/docker-compose.yml b/tests/e2e/docker-compose.yml
index a8a743f2..9d6e365d 100644
--- a/tests/e2e/docker-compose.yml
+++ b/tests/e2e/docker-compose.yml
@@ -91,5 +91,6 @@ services:
- FIXTURES_URL=http://fixtures:80
volumes:
- ./scenarios:/scenarios:ro
+ - ./scenarios-recent:/scenarios-recent:ro
- ./results:/results
command: ["/scenarios/run-all.sh"]
diff --git a/tests/e2e/scenarios/41-extensions.sh b/tests/e2e/scenarios-recent/41-extensions.sh
similarity index 100%
rename from tests/e2e/scenarios/41-extensions.sh
rename to tests/e2e/scenarios-recent/41-extensions.sh
diff --git a/tests/e2e/scenarios/42-lite-engine.sh b/tests/e2e/scenarios-recent/42-lite-engine.sh
similarity index 100%
rename from tests/e2e/scenarios/42-lite-engine.sh
rename to tests/e2e/scenarios-recent/42-lite-engine.sh
diff --git a/tests/e2e/scenarios-recent/common.sh b/tests/e2e/scenarios-recent/common.sh
new file mode 120000
index 00000000..5f1c9ffa
--- /dev/null
+++ b/tests/e2e/scenarios-recent/common.sh
@@ -0,0 +1 @@
+../scenarios/common.sh
\ No newline at end of file
diff --git a/tests/e2e/scenarios/run-recent.sh b/tests/e2e/scenarios-recent/run.sh
similarity index 84%
rename from tests/e2e/scenarios/run-recent.sh
rename to tests/e2e/scenarios-recent/run.sh
index 7494cd0e..1edf3d82 100755
--- a/tests/e2e/scenarios/run-recent.sh
+++ b/tests/e2e/scenarios-recent/run.sh
@@ -5,7 +5,8 @@
set -uo pipefail
SCRIPT_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; do
if [ -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}"
fi
done
diff --git a/tests/e2e/scenarios/run-all.sh b/tests/e2e/scenarios/run-all.sh
index 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 order
for script in "${SCRIPT_DIR}"/[0-9][0-9]-*.sh; do
- name="$(basename "$script")"
- if echo "$name" | grep -qE "^($RECENT_ONLY)$"; then
- continue
- fi
if [ -f "$script" ]; then
- echo -e "${YELLOW}Running: ${name}${NC}"
+ echo -e "${YELLOW}Running: $(basename "$script")${NC}"
echo ""
source "$script"
echo ""