Skip to content

High-performance browser automation bridge and multi-instance orchestrator with advanced stealth injection and real-time dashboard.

chore: removed sleeps call to speed up e2e

Luigi Agostid58a9509f4b7
diff --git a/tests/e2e/scenarios/api/actions-basic.sh b/tests/e2e/scenarios/api/actions-basic.sh
index 733c7245..9f9e0775 100644
--- a/tests/e2e/scenarios/api/actions-basic.sh
+++ b/tests/e2e/scenarios/api/actions-basic.sh
@@ -8,7 +8,6 @@ source "${GROUP_DIR}/../../helpers/api.sh"
start_test "pinchtab click <button>"
pt_post /navigate -d "{\"url\":\"${FIXTURES_URL}/buttons.html\"}"
-sleep 1
pt_get /snapshot
click_button "Increment"
@@ -19,7 +18,6 @@ end_test
start_test "pinchtab type <field> <text>"
pt_post /navigate -d "{\"url\":\"${FIXTURES_URL}/form.html\"}"
-sleep 1
pt_get /snapshot
type_into "Username" "testuser123"
@@ -37,7 +35,6 @@ end_test
start_test "pinchtab click (CSS selector)"
pt_post /navigate -d "{\"url\":\"${FIXTURES_URL}/buttons.html\"}"
-sleep 1
pt_post /action -d '{"kind":"click","selector":"#increment"}'
assert_ok "click by selector"
@@ -48,7 +45,6 @@ end_test
start_test "pinchtab type (CSS selector)"
pt_post /navigate -d "{\"url\":\"${FIXTURES_URL}/form.html\"}"
-sleep 1
pt_post /action -d '{"kind":"type","selector":"#username","text":"selectortest"}'
assert_ok "type by selector"
@@ -59,7 +55,6 @@ end_test
start_test "pinchtab snapshot (CSS selector filter)"
pt_post /navigate -d "{\"url\":\"${FIXTURES_URL}/form.html\"}"
-sleep 1
pt_get "/snapshot?selector=#username"
assert_ok "snapshot with selector"
diff --git a/tests/e2e/scenarios/api/actions-extended.sh b/tests/e2e/scenarios/api/actions-extended.sh
index a80d8b8a..a1705d2b 100644
--- a/tests/e2e/scenarios/api/actions-extended.sh
+++ b/tests/e2e/scenarios/api/actions-extended.sh
@@ -10,7 +10,6 @@ source "${GROUP_DIR}/../../helpers/api-actions.sh"
start_test "HTTP: dblclick by ref"
pt_post /navigate -d "{\"url\":\"${FIXTURES_URL}/buttons.html\"}"
-sleep 1
pt_get /snapshot
REF=$(echo "$RESULT" | jq -r '[.nodes[] | select(.name == "Increment")][0].ref // empty')
@@ -24,7 +23,6 @@ end_test
start_test "HTTP: dblclick by CSS selector"
pt_post /navigate -d "{\"url\":\"${FIXTURES_URL}/buttons.html\"}"
-sleep 1
pt_post /action -d "{\"kind\":\"dblclick\",\"selector\":\"#increment\"}"
assert_ok "dblclick by selector"
@@ -35,7 +33,6 @@ end_test
start_test "HTTP: dblclick by coordinates"
pt_post /navigate -d "{\"url\":\"${FIXTURES_URL}/buttons.html\"}"
-sleep 1
pt_post /action -d "{\"kind\":\"dblclick\",\"x\":100,\"y\":100,\"hasXY\":true}"
assert_ok "dblclick by coordinates"
@@ -46,7 +43,6 @@ end_test
start_test "CLI: pinchtab dblclick <ref>"
pt_post /navigate -d "{\"url\":\"${FIXTURES_URL}/buttons.html\"}"
-sleep 1
pt_get /snapshot
REF=$(echo "$RESULT" | jq -r '[.nodes[] | select(.name == "Increment")][0].ref // empty')
@@ -60,7 +56,6 @@ end_test
start_test "CLI: pinchtab dblclick --css <selector>"
pt_post /navigate -d "{\"url\":\"${FIXTURES_URL}/buttons.html\"}"
-sleep 1
run_cli dblclick --css "#increment"
assert_ok "CLI dblclick by selector"
@@ -75,7 +70,6 @@ assert_ok "navigate for new tab"
TAB_ID=$(echo "$RESULT" | jq -r '.tabId')
pt_post /navigate -d "{\"url\":\"${FIXTURES_URL}/buttons.html\"}"
-sleep 1
pt_get /snapshot
REF=$(echo "$RESULT" | jq -r '[.nodes[] | select(.name == "Increment")][0].ref // empty')
@@ -313,7 +307,6 @@ end_test
start_test "iframe: srcdoc frame-scoped selectors work"
navigate_fixture "srcdoc-iframe.html"
-sleep 1
fresh_snapshot
pt_post /frame -d '{"target":"#srcdoc-payment-frame"}'
@@ -382,7 +375,6 @@ end_test
start_test "iframe: cross-origin selector scope is not claimed as supported"
navigate_fixture "cross-origin-iframe.html"
-sleep 1
fresh_snapshot
pt_post /frame -d '{"target":"#cross-origin-frame"}'
@@ -409,7 +401,6 @@ E2E_SERVER="http://pinchtab:9999"
start_test "press Enter: does not type 'Enter' as text"
pt_post /navigate -d "{\"url\":\"${FIXTURES_URL}/form.html\"}"
-sleep 1
pt_post /action -d '{"kind":"type","selector":"#username","text":"testuser"}'
assert_ok "type into username"
@@ -425,7 +416,6 @@ end_test
start_test "press Tab: does not type 'Tab' as text"
pt_post /navigate -d "{\"url\":\"${FIXTURES_URL}/form.html\"}"
-sleep 1
pt_post /action -d '{"kind":"click","selector":"#username"}'
pt_post /action -d '{"kind":"type","selector":"#username","text":"hello"}'
@@ -442,7 +432,6 @@ end_test
start_test "press Escape: does not type 'Escape' as text"
pt_post /navigate -d "{\"url\":\"${FIXTURES_URL}/form.html\"}"
-sleep 1
pt_post /action -d '{"kind":"type","selector":"#username","text":"world"}'
assert_ok "type world"
@@ -540,7 +529,6 @@ start_test "POST /dialog: no pending dialog"
# Navigate to a page that has no dialog
pt_post /navigate "{\"url\":\"${FIXTURES_URL}/buttons.html\"}"
assert_ok "navigate"
-sleep 0.5
# Try to accept a dialog when none is pending
pt_post /dialog '{"action":"accept"}'
@@ -593,7 +581,6 @@ start_test "click alert without dialogAction: fast-fail with dialog_blocking err
pt_post /navigate "{\"url\":\"${FIXTURES_URL}/buttons.html\"}"
assert_ok "navigate to buttons"
-sleep 0.5
pt_get /snapshot
ALERT_REF=$(echo "$RESULT" | jq -r '[.nodes[] | select(.name == "Trigger Alert")][0].ref // empty')
@@ -624,7 +611,6 @@ start_test "click alert with dialogAction accept: dialog dismissed"
pt_post /navigate "{\"url\":\"${FIXTURES_URL}/buttons.html\"}"
assert_ok "navigate to buttons"
-sleep 0.5
pt_get /snapshot
ALERT_REF=$(echo "$RESULT" | jq -r '[.nodes[] | select(.name == "Trigger Alert")][0].ref // empty')
@@ -644,7 +630,6 @@ start_test "click confirm with dialogAction dismiss: confirm cancelled"
pt_post /navigate "{\"url\":\"${FIXTURES_URL}/buttons.html\"}"
assert_ok "navigate to buttons"
-sleep 0.5
pt_get /snapshot
CONFIRM_REF=$(echo "$RESULT" | jq -r '[.nodes[] | select(.name == "Trigger Confirm")][0].ref // empty')
@@ -664,7 +649,6 @@ start_test "click confirm with dialogAction accept: confirm accepted"
pt_post /navigate "{\"url\":\"${FIXTURES_URL}/buttons.html\"}"
assert_ok "navigate to buttons"
-sleep 0.5
pt_get /snapshot
CONFIRM_REF=$(echo "$RESULT" | jq -r '[.nodes[] | select(.name == "Trigger Confirm")][0].ref // empty')
@@ -684,7 +668,6 @@ start_test "click prompt with dialogAction accept and text: prompt value returne
pt_post /navigate "{\"url\":\"${FIXTURES_URL}/buttons.html\"}"
assert_ok "navigate to buttons"
-sleep 0.5
pt_get /snapshot
PROMPT_REF=$(echo "$RESULT" | jq -r '[.nodes[] | select(.name == "Trigger Prompt")][0].ref // empty')
@@ -704,7 +687,6 @@ start_test "click prompt with dialogAction dismiss: prompt cancelled"
pt_post /navigate "{\"url\":\"${FIXTURES_URL}/buttons.html\"}"
assert_ok "navigate to buttons"
-sleep 0.5
pt_get /snapshot
PROMPT_REF=$(echo "$RESULT" | jq -r '[.nodes[] | select(.name == "Trigger Prompt")][0].ref // empty')
diff --git a/tests/e2e/scenarios/api/browser-basic.sh b/tests/e2e/scenarios/api/browser-basic.sh
index 58ab24b1..3eb6da09 100644
--- a/tests/e2e/scenarios/api/browser-basic.sh
+++ b/tests/e2e/scenarios/api/browser-basic.sh
@@ -112,7 +112,6 @@ end_test
start_test "pinchtab snap (buttons.html)"
pt_post /navigate -d "{\"url\":\"${FIXTURES_URL}/buttons.html\"}"
-sleep 1
pt_get /snapshot
assert_buttons_page "$RESULT"
@@ -123,7 +122,6 @@ end_test
start_test "pinchtab snap (form.html)"
pt_post /navigate -d "{\"url\":\"${FIXTURES_URL}/form.html\"}"
-sleep 1
pt_get /snapshot
assert_form_page "$RESULT"
@@ -134,7 +132,6 @@ end_test
start_test "pinchtab text (table.html)"
pt_post /navigate -d "{\"url\":\"${FIXTURES_URL}/table.html\"}"
-sleep 1
TEXT_RESULT=$(e2e_curl -s "${E2E_SERVER}/text" | jq -r '.text')
assert_table_page "$TEXT_RESULT"
@@ -145,7 +142,6 @@ end_test
start_test "snapshot: diff mode"
pt_post /navigate -d "{\"url\":\"${FIXTURES_URL}/buttons.html\"}"
-sleep 1
pt_get /snapshot
assert_ok "initial snapshot"
@@ -169,7 +165,6 @@ end_test
start_test "snapshot: maxTokens truncation"
pt_post /navigate -d "{\"url\":\"${FIXTURES_URL}/buttons.html\"}"
-sleep 1
pt_get /snapshot
FULL_COUNT=$(echo "$RESULT" | jq '.nodes | length')
@@ -192,7 +187,6 @@ end_test
start_test "snapshot: depth parameter"
pt_post /navigate -d "{\"url\":\"${FIXTURES_URL}/buttons.html\"}"
-sleep 1
pt_get /snapshot
FULL_COUNT=$(echo "$RESULT" | jq '.nodes | length')
@@ -313,7 +307,6 @@ assert_contains "$RESULT" "Form Test" "tab B text matches form.html"
end_test
pt_post /navigate -d "{\"url\":\"${FIXTURES_URL}/find.html\"}"
-sleep 1
# ─────────────────────────────────────────────────────────────────
start_test "pinchtab find (login button)"
@@ -355,7 +348,6 @@ start_test "pinchtab find --tab <id>"
pt_post /navigate -d "{\"url\":\"${FIXTURES_URL}/find.html\",\"newTab\":true}"
assert_ok "navigate for find"
TAB_ID=$(echo "$RESULT" | jq -r '.tabId')
-sleep 1
pt_post "/tabs/${TAB_ID}/find" -d '{"query":"sign up link"}'
assert_ok "tab find"
@@ -366,7 +358,6 @@ end_test
start_test "pinchtab find (explain mode)"
pt_post /navigate -d "{\"url\":\"${FIXTURES_URL}/find.html\"}"
-sleep 1
pt_post /find -d '{"query":"login button","explain":true}'
assert_ok "find with explain"
@@ -409,7 +400,6 @@ fi
end_test
pt_post /navigate -d "{\"url\":\"${FIXTURES_URL}/evaluate.html\"}"
-sleep 1
# ─────────────────────────────────────────────────────────────────
start_test "pinchtab evaluate (simple expression)"
@@ -464,7 +454,6 @@ start_test "pinchtab evaluate --tab <id>"
pt_post /navigate -d "{\"url\":\"${FIXTURES_URL}/evaluate.html\",\"newTab\":true}"
assert_ok "navigate for evaluate"
TAB_ID=$(echo "$RESULT" | jq -r '.tabId')
-sleep 1
pt_post "/tabs/${TAB_ID}/evaluate" -d '{"expression":"1 + 2 + 3"}'
assert_ok "tab evaluate"
diff --git a/tests/e2e/scenarios/api/browser-extended.sh b/tests/e2e/scenarios/api/browser-extended.sh
index ef71414c..822a384b 100644
--- a/tests/e2e/scenarios/api/browser-extended.sh
+++ b/tests/e2e/scenarios/api/browser-extended.sh
@@ -191,7 +191,6 @@ pt_post /navigate "{\"url\":\"${FIXTURES_URL}/form.html\"}"
pt_post /navigate "{\"url\":\"${FIXTURES_URL}/buttons.html\"}"
assert_ok "final navigate succeeded"
-sleep 1
pt_get /snapshot
assert_ok "snapshot after rapid nav"
diff --git a/tests/e2e/scenarios/api/console-basic.sh b/tests/e2e/scenarios/api/console-basic.sh
index a619847e..1a3fb1d7 100755
--- a/tests/e2e/scenarios/api/console-basic.sh
+++ b/tests/e2e/scenarios/api/console-basic.sh
@@ -31,7 +31,6 @@ end_test
start_test "console logs captured after console.log in page"
pt_post /navigate -d "{\"url\":\"${FIXTURES_URL}/console.html\"}"
-sleep 1
pt_get /console
assert_ok "get console after logging page"
@@ -70,7 +69,6 @@ end_test
start_test "GET /console with limit parameter"
pt_post /navigate -d "{\"url\":\"${FIXTURES_URL}/console.html\"}"
-sleep 1
pt_get "/console?limit=2"
assert_ok "get console with limit"
diff --git a/tests/e2e/scenarios/api/files-basic.sh b/tests/e2e/scenarios/api/files-basic.sh
index 3b593912..a085ff49 100644
--- a/tests/e2e/scenarios/api/files-basic.sh
+++ b/tests/e2e/scenarios/api/files-basic.sh
@@ -8,7 +8,6 @@ source "${GROUP_DIR}/../../helpers/api.sh"
start_test "pinchtab screenshot"
pt_post /navigate -d "{\"url\":\"${FIXTURES_URL}/table.html\"}"
-sleep 1
pt_get /screenshot
assert_ok "screenshot"
@@ -27,7 +26,6 @@ end_test
start_test "pinchtab screenshot --tab <id>"
pt_post /navigate -d "{\"url\":\"${FIXTURES_URL}/table.html\"}"
-sleep 1
pt_get /tabs
TAB_ID=$(get_first_tab)
@@ -63,7 +61,6 @@ end_test
start_test "screenshot: quality parameter"
pt_post /navigate -d "{\"url\":\"${FIXTURES_URL}/table.html\"}"
-sleep 1
LOW_Q_SIZE=$(e2e_curl -s "${E2E_SERVER}/screenshot?quality=10" | wc -c)
HIGH_Q_SIZE=$(e2e_curl -s "${E2E_SERVER}/screenshot?quality=95" | wc -c)
@@ -154,7 +151,6 @@ assert_ok "tab download"
end_test
pt_post /navigate -d "{\"url\":\"${FIXTURES_URL}/upload.html\"}"
-sleep 1
# ─────────────────────────────────────────────────────────────────
start_test "pinchtab upload (base64 file)"
@@ -182,7 +178,6 @@ start_test "pinchtab upload --tab <id>"
pt_post /navigate -d "{\"url\":\"${FIXTURES_URL}/upload.html\",\"newTab\":true}"
assert_ok "navigate for upload"
TAB_ID=$(echo "$RESULT" | jq -r '.tabId')
-sleep 1
# 1x1 transparent PNG
PNG_DATA="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mNk+M9QDwADhgGAWjR9awAAAABJRU5ErkJggg=="
diff --git a/tests/e2e/scenarios/api/files-extended.sh b/tests/e2e/scenarios/api/files-extended.sh
index 94cd075f..9c72d8d4 100644
--- a/tests/e2e/scenarios/api/files-extended.sh
+++ b/tests/e2e/scenarios/api/files-extended.sh
@@ -8,7 +8,6 @@ source "${GROUP_DIR}/../../helpers/api.sh"
pt_post /navigate "{\"url\":\"${FIXTURES_URL}/upload.html\"}"
assert_ok "navigate"
-sleep 1
# ─────────────────────────────────────────────────────────────────
start_test "upload: default selector"
diff --git a/tests/e2e/scenarios/cli/console-basic.sh b/tests/e2e/scenarios/cli/console-basic.sh
index 84337741..492f6142 100755
--- a/tests/e2e/scenarios/cli/console-basic.sh
+++ b/tests/e2e/scenarios/cli/console-basic.sh
@@ -18,7 +18,6 @@ end_test
start_test "pinchtab console (with logs)"
pt_ok nav "${FIXTURES_URL}/console.html"
-sleep 1
pt_ok console
# Should show logged messages
assert_output_contains "LOG\|log\|console\|Hello\|No console" "shows log level or no logs"
@@ -37,7 +36,6 @@ end_test
start_test "pinchtab console --limit"
pt_ok nav "${FIXTURES_URL}/console.html"
-sleep 1
pt_ok console --limit 2
end_test
diff --git a/tests/e2e/scenarios/cli/storage-basic.sh b/tests/e2e/scenarios/cli/storage-basic.sh
index c82250e1..9f6f7cac 100644
--- a/tests/e2e/scenarios/cli/storage-basic.sh
+++ b/tests/e2e/scenarios/cli/storage-basic.sh
@@ -12,7 +12,6 @@ start_test "Setup: navigate to fixture page for storage tests"
pt navigate "${FIXTURES_URL}/index.html"
assert_cli_ok "navigate to fixture"
-sleep 0.5
end_test
diff --git a/tests/e2e/scenarios/infra/engine-modes-extended.sh b/tests/e2e/scenarios/infra/engine-modes-extended.sh
index 4e4669bf..e7b89cbd 100755
--- a/tests/e2e/scenarios/infra/engine-modes-extended.sh
+++ b/tests/e2e/scenarios/infra/engine-modes-extended.sh
@@ -192,7 +192,6 @@ start_test "safe-lite: IDPI blocks injection on text extraction"
lite_post /navigate "{\"url\":\"${FIXTURES_URL}/idpi-inject.html\"}"
assert_ok "lite navigate to injection page"
-sleep 0.5
# Lite with IDPI in warn mode — text should still return but may have warnings
lite_get "/text?format=text"
@@ -205,7 +204,6 @@ start_test "safe-lite: clean page passes IDPI"
lite_post /navigate "{\"url\":\"${FIXTURES_URL}/idpi-clean.html\"}"
assert_ok "lite navigate to clean page"
-sleep 0.5
lite_get "/snapshot"
assert_ok "lite snapshot passes"
@@ -234,7 +232,6 @@ start_test "safe-chrome: strict IDPI blocks injection"
secure_post /navigate "{\"url\":\"${FIXTURES_URL}/idpi-inject.html\"}"
assert_ok "secure navigate to injection page"
-sleep 0.5
secure_get "/snapshot"
assert_http_status 403 "snapshot blocked by strict IDPI"
@@ -246,7 +243,6 @@ start_test "safe-chrome: strict IDPI passes clean page"
secure_post /navigate "{\"url\":\"${FIXTURES_URL}/idpi-clean.html\"}"
assert_ok "secure navigate to clean page"
-sleep 0.5
secure_get "/snapshot"
assert_ok "snapshot passes strict IDPI"
@@ -262,7 +258,6 @@ start_test "engine-parity: click action on both engines"
pt_post /navigate "{\"url\":\"${FIXTURES_URL}/buttons.html\"}"
assert_ok "chrome navigate to buttons"
-sleep 0.5
pt_get /snapshot
CHROME_BTN=$(echo "$RESULT" | jq -r '[.nodes[] | select(.name == "Increment") | .ref] | first // empty')
if [ -n "$CHROME_BTN" ]; then
@@ -272,7 +267,6 @@ fi
lite_post /navigate "{\"url\":\"${FIXTURES_URL}/buttons.html\"}"
assert_ok "lite navigate to buttons"
-sleep 0.5
lite_get /snapshot
LITE_BTN=$(echo "$RESULT" | jq -r '[.nodes[] | select(.name == "Increment") | .ref] | first // empty')
if [ -n "$LITE_BTN" ]; then
@@ -287,7 +281,6 @@ start_test "engine-parity: type action on both engines"
pt_post /navigate "{\"url\":\"${FIXTURES_URL}/form.html\"}"
assert_ok "chrome navigate to form"
-sleep 0.5
pt_get "/snapshot?filter=interactive"
CHROME_INPUT=$(echo "$RESULT" | jq -r '[.nodes[] | select(.role == "textbox") | .ref] | first // empty')
if [ -n "$CHROME_INPUT" ]; then
@@ -297,7 +290,6 @@ fi
lite_post /navigate "{\"url\":\"${FIXTURES_URL}/form.html\"}"
assert_ok "lite navigate to form"
-sleep 0.5
lite_get "/snapshot?filter=interactive"
LITE_INPUT=$(echo "$RESULT" | jq -r '[.nodes[] | select(.role == "textbox") | .ref] | first // empty')
if [ -n "$LITE_INPUT" ]; then
diff --git a/tests/e2e/scenarios/infra/idpi-extended.sh b/tests/e2e/scenarios/infra/idpi-extended.sh
index 7d7ac2c3..87e06325 100644
--- a/tests/e2e/scenarios/infra/idpi-extended.sh
+++ b/tests/e2e/scenarios/infra/idpi-extended.sh
@@ -38,7 +38,6 @@ start_test "idpi-off: hidden injection passes through without IDPI"
# Navigate to the hidden injection fixture (permissive server, IDPI warn only)
pt_post /navigate -d "{\"url\":\"${FIXTURES_URL}/idpi-hidden-injection.html\"}"
assert_ok "navigate to hidden injection page"
-sleep 0.5
# Get snapshot — visible content should be present, IDPI warning should be set
pt_get "/snapshot?format=json"
@@ -57,7 +56,6 @@ start_test "idpi-off: unicode bypass passes through without strict IDPI"
pt_post /navigate -d "{\"url\":\"${FIXTURES_URL}/idpi-unicode-bypass.html\"}"
assert_ok "navigate to unicode bypass page"
-sleep 0.5
pt_get "/snapshot"
assert_ok "snapshot succeeds"
@@ -75,12 +73,10 @@ start_test "idpi-strict: hidden injection BLOCKED by scanner"
# First navigate to a clean page to establish tab
secure_post /navigate -d "{\"url\":\"${FIXTURES_URL}/idpi-clean.html\"}"
assert_ok "navigate to clean page first"
-sleep 0.5
# Now navigate to the injection page
secure_post /navigate -d "{\"url\":\"${FIXTURES_URL}/idpi-hidden-injection.html\"}"
assert_ok "navigate to injection page"
-sleep 0.5
# Snapshot should be BLOCKED (403) because strict mode + injection detected
secure_get "/snapshot"
@@ -94,7 +90,6 @@ start_test "idpi-strict: standard injection BLOCKED"
secure_post /navigate -d "{\"url\":\"${FIXTURES_URL}/idpi-inject.html\"}"
assert_ok "navigate to injection page"
-sleep 0.5
secure_get "/snapshot"
assert_http_status 403 "snapshot blocked by IDPI"
@@ -107,7 +102,6 @@ start_test "idpi-strict: clean page passes through"
secure_post /navigate -d "{\"url\":\"${FIXTURES_URL}/idpi-clean.html\"}"
assert_ok "navigate to clean page"
-sleep 0.5
secure_get "/snapshot"
assert_ok "clean snapshot passes IDPI"
@@ -124,7 +118,6 @@ start_test "idpi-hidden: hidden traps omitted from snapshot but warning preserve
# Use permissive server (warn mode) so we get the snapshot back with flags
pt_post /navigate -d "{\"url\":\"${FIXTURES_URL}/idpi-hidden-injection.html\"}"
assert_ok "navigate to injection page"
-sleep 0.5
pt_get "/snapshot"
assert_ok "snapshot returned"
@@ -163,7 +156,6 @@ start_test "idpi-strict: unicode homoglyph bypass BLOCKED"
secure_post /navigate -d "{\"url\":\"${FIXTURES_URL}/idpi-unicode-bypass.html\"}"
assert_ok "navigate to unicode bypass page"
-sleep 0.5
# The Cyrillic homoglyph "Іgnore previous instructions" should be caught
# after NFKC normalization + homoglyph replacement
@@ -179,7 +171,6 @@ start_test "idpi-warn: unicode bypass detected with warning"
# Permissive server — warn mode
pt_post /navigate -d "{\"url\":\"${FIXTURES_URL}/idpi-unicode-bypass.html\"}"
assert_ok "navigate to unicode bypass page"
-sleep 0.5
pt_get "/snapshot"
assert_ok "snapshot returned (warn mode)"
@@ -209,7 +200,6 @@ assert_ok "IDPI wrapContent disabled on base server"
pt_post /navigate -d "{\"url\":\"${FIXTURES_URL}/idpi-clean.html\"}"
assert_ok "navigate to clean page"
-sleep 0.5
# E2E config has wrapContent disabled — text should NOT be wrapped
pt_get "/snapshot?format=text"
diff --git a/tests/e2e/scenarios/infra/network-basic.sh b/tests/e2e/scenarios/infra/network-basic.sh
index 85bb0b3e..def6445f 100755
--- a/tests/e2e/scenarios/infra/network-basic.sh
+++ b/tests/e2e/scenarios/infra/network-basic.sh
@@ -10,7 +10,6 @@ start_test "GET /network: returns entries after navigation"
pt_post /navigate "{\"url\":\"${FIXTURES_URL}/buttons.html\"}"
TAB_ID=$(get_tab_id)
-sleep 1
pt_get "/network?tabId=${TAB_ID}"
assert_ok "get network entries"
@@ -86,7 +85,6 @@ start_test "GET /network/export: basic HAR export works"
# Generate fresh traffic
pt_post /navigate "{\"url\":\"${FIXTURES_URL}/index.html\"}"
-sleep 1
pt_get "/network/export?tabId=${TAB_ID}"
assert_ok "basic HAR export"
diff --git a/tests/e2e/scenarios/infra/network-extended.sh b/tests/e2e/scenarios/infra/network-extended.sh
index b69779d7..e99363c4 100755
--- a/tests/e2e/scenarios/infra/network-extended.sh
+++ b/tests/e2e/scenarios/infra/network-extended.sh
@@ -12,7 +12,6 @@ source "${GROUP_DIR}/../../helpers/api.sh"
pt_post /navigate "{\"url\":\"${FIXTURES_URL}/buttons.html\"}"
TAB_ID=$(get_tab_id)
-sleep 1
# ─────────────────────────────────────────────────────────────────
start_test "GET /network/export: default HAR format"
@@ -377,7 +376,6 @@ start_test "GET /network: list entries with filters"
pt_post /navigate "{\"url\":\"${FIXTURES_URL}/index.html\"}"
NEW_TAB_ID=$(get_tab_id)
-sleep 1
pt_get "/network?tabId=${NEW_TAB_ID}"
assert_ok "get network entries"
diff --git a/tests/e2e/scenarios/infra/security-basic.sh b/tests/e2e/scenarios/infra/security-basic.sh
index dd810599..60dbb654 100644
--- a/tests/e2e/scenarios/infra/security-basic.sh
+++ b/tests/e2e/scenarios/infra/security-basic.sh
@@ -22,7 +22,6 @@ end_test
start_test "security: upload ALLOWED when enabled"
pt_post /navigate -d "{\"url\":\"${FIXTURES_URL}/upload.html\"}"
-sleep 1
pt_post /upload -d '{"selector":"#single-file","files":["data:text/plain;base64,dGVzdA=="]}'
assert_ok "upload allowed"
diff --git a/tests/e2e/scenarios/infra/storage-basic.sh b/tests/e2e/scenarios/infra/storage-basic.sh
index 00b7c8c4..8a317597 100644
--- a/tests/e2e/scenarios/infra/storage-basic.sh
+++ b/tests/e2e/scenarios/infra/storage-basic.sh
@@ -14,7 +14,6 @@ start_test "Setup: navigate to fixture page for storage tests"
pt_post /navigate "{\"url\":\"${FIXTURES_URL}/index.html\"}"
assert_ok "navigate to fixture"
-sleep 0.5
end_test
diff --git a/tests/e2e/scenarios/plugin/plugin-basic.sh b/tests/e2e/scenarios/plugin/plugin-basic.sh
index ae28a0e1..d8489db2 100644
--- a/tests/e2e/scenarios/plugin/plugin-basic.sh
+++ b/tests/e2e/scenarios/plugin/plugin-basic.sh
@@ -142,7 +142,6 @@ start_test "plugin: evaluate JavaScript"
pt_post /navigate -d "{\"url\":\"${FIXTURES_URL}/evaluate.html\"}"
TAB_ID=$(echo "$RESULT" | jq -r '.tabId')
-sleep 1
pt_post /evaluate -d "{\"tabId\":\"${TAB_ID}\",\"expression\":\"document.title\"}"
assert_ok "evaluate"