High-performance browser automation bridge and multi-instance orchestrator with advanced stealth injection and real-time dashboard.
fix: use correct button selector #increment from buttons.html fixture
Luigi Agostieb275085e817
diff --git a/tests/e2e/scenarios/api/tabs-extended.sh b/tests/e2e/scenarios/api/tabs-extended.shindex 0c368784..bcd0d5ea 100644--- a/tests/e2e/scenarios/api/tabs-extended.sh+++ b/tests/e2e/scenarios/api/tabs-extended.sh@@ -342,7 +342,7 @@ show_tab "created" "$BLOCK_TAB"pt_post "/tabs/${BLOCK_TAB}/handoff" -d '{"reason":"manual_intervention"}'assert_ok "pause tab for handoff"-pt_post /action -d "{\"kind\":\"click\",\"selector\":\"#btn-1\",\"tabId\":\"${BLOCK_TAB}\"}"+pt_post /action -d "{\"kind\":\"click\",\"selector\":\"#increment\",\"tabId\":\"${BLOCK_TAB}\"}"assert_http_status 409 "action blocked during handoff"assert_contains "$RESULT" "tab_paused_handoff" "error code is tab_paused_handoff"@@ -357,10 +357,10 @@ start_test "handoff: actions work after resume"pt_post "/tabs/${BLOCK_TAB}/navigate" -d "{\"url\":\"${FIXTURES_URL}/buttons.html\"}"assert_ok "navigate to buttons page"-pt_post /wait -d "{\"tabId\":\"${BLOCK_TAB}\",\"selector\":\"#btn-1\"}"+pt_post /wait -d "{\"tabId\":\"${BLOCK_TAB}\",\"selector\":\"#increment\"}"assert_ok "wait for button"-pt_post /action -d "{\"kind\":\"click\",\"selector\":\"#btn-1\",\"tabId\":\"${BLOCK_TAB}\"}"+pt_post /action -d "{\"kind\":\"click\",\"selector\":\"#increment\",\"tabId\":\"${BLOCK_TAB}\"}"assert_ok "action succeeds after resume"end_test@@ -375,7 +375,7 @@ show_tab "created" "$BATCH_TAB"pt_post "/tabs/${BATCH_TAB}/handoff" -d '{"reason":"captcha"}'assert_ok "pause tab"-pt_post /actions -d "{\"tabId\":\"${BATCH_TAB}\",\"actions\":[{\"kind\":\"click\",\"selector\":\"#btn-1\"}]}"+pt_post /actions -d "{\"tabId\":\"${BATCH_TAB}\",\"actions\":[{\"kind\":\"click\",\"selector\":\"#increment\"}]}"assert_ok "batch returns 200 with error in results"assert_json_contains "$RESULT" '.results[0].error' 'paused for human handoff' "error mentions handoff"assert_json_eq "$RESULT" '.failed' '1' "one action failed"@@ -409,10 +409,10 @@ assert_json_eq "$RESULT" '.status' 'active' "auto-expired to active"pt_post "/tabs/${TIMEOUT_TAB}/navigate" -d "{\"url\":\"${FIXTURES_URL}/buttons.html\"}"assert_ok "navigate to buttons page"-pt_post /wait -d "{\"tabId\":\"${TIMEOUT_TAB}\",\"selector\":\"#btn-1\"}"+pt_post /wait -d "{\"tabId\":\"${TIMEOUT_TAB}\",\"selector\":\"#increment\"}"assert_ok "wait for button"-pt_post /action -d "{\"kind\":\"click\",\"selector\":\"#btn-1\",\"tabId\":\"${TIMEOUT_TAB}\"}"+pt_post /action -d "{\"kind\":\"click\",\"selector\":\"#increment\",\"tabId\":\"${TIMEOUT_TAB}\"}"assert_ok "action succeeds after timeout expiry"end_test