High-performance browser automation bridge and multi-instance orchestrator with advanced stealth injection and real-time dashboard.
fix: increase stealth injection wait from 500ms to 1s for CI reliability
Marioa25c7886e07f
diff --git a/tests/integration/stealth_test.go b/tests/integration/stealth_test.goindex f7aea898..8b4938ff 100644--- a/tests/integration/stealth_test.go+++ b/tests/integration/stealth_test.go@@ -11,10 +11,10 @@ import (// ST1: Webdriver is hidden (undefined)func TestStealth_WebdriverUndefined(t *testing.T) {navigate(t, "https://example.com")- // Wait briefly for stealth injection to complete- // Chrome's navigator.webdriver property is patched by stealth.js on page load,- // but there can be a race condition between navigation and injection- time.Sleep(500 * time.Millisecond)+ // Wait for stealth injection to complete+ // On slow CI runners, injection may take longer than on local machines.+ // 1 second gives stealth.js time to hook navigator.webdriver via AddScriptToEvaluateOnNewDocument+ time.Sleep(1 * time.Second)code, body := httpPost(t, "/evaluate", map[string]string{"expression": "navigator.webdriver === undefined",})@@ -35,8 +35,8 @@ func TestStealth_WebdriverUndefined(t *testing.T) {// ST3: Plugins are presentfunc TestStealth_PluginsPresent(t *testing.T) {navigate(t, "https://example.com")- // Wait briefly for stealth injection to complete- time.Sleep(500 * time.Millisecond)+ // Wait for stealth injection to complete (increased for slower CI runners)+ time.Sleep(1 * time.Second)code, body := httpPost(t, "/evaluate", map[string]string{"expression": "navigator.plugins.length > 0",})@@ -52,8 +52,8 @@ func TestStealth_PluginsPresent(t *testing.T) {// ST4: Chrome runtime is presentfunc TestStealth_ChromeRuntimePresent(t *testing.T) {navigate(t, "https://example.com")- // Wait briefly for stealth injection to complete- time.Sleep(500 * time.Millisecond)+ // Wait for stealth injection to complete (increased for slower CI runners)+ time.Sleep(1 * time.Second)code, body := httpPost(t, "/evaluate", map[string]string{"expression": "!!window.chrome.runtime",})