Skip to content

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

fix: unblock network-intercept e2e checks and reduce chrome-launch flake

Luigi Agostic3da3aa059f8
diff --git a/internal/bridge/action_form_aria_test.go b/internal/bridge/action_form_aria_test.go
index 3dd4ad90..fb49b10d 100644
--- a/internal/bridge/action_form_aria_test.go
+++ b/internal/bridge/action_form_aria_test.go
@@ -30,7 +30,7 @@ func TestCheckUncheckARIACheckboxAndVerifyState(t *testing.T) {
chromedp.Flag("no-sandbox", true),
)...)
ctx, cancel := chromedp.NewContext(alloc)
- ctx, cancelTimeout := context.WithTimeout(ctx, 15*time.Second)
+ ctx, cancelTimeout := context.WithTimeout(ctx, 20*time.Second)
t.Cleanup(func() {
cancelTimeout()
cancel()
diff --git a/tests/e2e/config/pinchtab-network-retain-bodies.json b/tests/e2e/config/pinchtab-network-retain-bodies.json
index 6539feb6..34b3f732 100644
--- a/tests/e2e/config/pinchtab-network-retain-bodies.json
+++ b/tests/e2e/config/pinchtab-network-retain-bodies.json
@@ -47,6 +47,7 @@
"allowUpload": true,
"allowClipboard": true,
"allowStateExport": true,
+ "allowNetworkIntercept": true,
"allowedDomains": [
"localhost",
"127.0.0.1",
diff --git a/tests/e2e/config/pinchtab.json b/tests/e2e/config/pinchtab.json
index c4d8a846..f786fea3 100644
--- a/tests/e2e/config/pinchtab.json
+++ b/tests/e2e/config/pinchtab.json
@@ -44,6 +44,7 @@
"allowUpload": true,
"allowClipboard": true,
"allowStateExport": true,
+ "allowNetworkIntercept": true,
"allowedDomains": [
"localhost",
"127.0.0.1",
diff --git a/tests/e2e/scenarios/api/actions-extended.sh b/tests/e2e/scenarios/api/actions-extended.sh
index 16e19621..a6ddd314 100644
--- a/tests/e2e/scenarios/api/actions-extended.sh
+++ b/tests/e2e/scenarios/api/actions-extended.sh
@@ -78,7 +78,7 @@ pt_post /action -d '{"kind":"fill","selector":"#password","text":"secret"}'
assert_ok "fill password"
pt_post /action -d '{"kind":"click","selector":"#submit-btn","submit":true}'
assert_ok "submit click"
-assert_result_jq '.postState.status == "pending" and .postState.signal == "no_terminal_change"' \
+assert_result_jq '.result.postState.status == "pending" and .result.postState.signal == "no_terminal_change"' \
"inline submit reports pending post-state" "inline submit did not report the expected pending post-state"
pt_post /evaluate -d '{"expression":"document.getElementById(\"result-success\")?.textContent"}'