High-performance browser automation bridge and multi-instance orchestrator with advanced stealth injection and real-time dashboard.
fix: table.html assertion (Active not Engineer), tab close count
Boschdb0d99de605a
diff --git a/tests/e2e/scenarios/04-tabs-api.sh b/tests/e2e/scenarios/04-tabs-api.shindex a8eb860b..233e3bb8 100755--- a/tests/e2e/scenarios/04-tabs-api.sh+++ b/tests/e2e/scenarios/04-tabs-api.sh@@ -39,15 +39,17 @@ end_test# ─────────────────────────────────────────────────────────────────start_test "pinchtab tab close"-BEFORE=$(get_tab_count)-+# Create a new tabpt_post /navigate -d "{\"url\":\"${FIXTURES_URL}/buttons.html\"}"TAB_ID=$(get_tab_id)+AFTER_CREATE=$(get_tab_count)+# Close itpt_post "/tabs/${TAB_ID}/close" -d '{}'assert_ok "tab close"+# Verify count decreasedsleep 1-assert_tab_closed "$BEFORE"+assert_tab_closed "$AFTER_CREATE"end_testdiff --git a/tests/e2e/scenarios/common.sh b/tests/e2e/scenarios/common.shindex 0cf3a8e9..d660969b 100755--- a/tests/e2e/scenarios/common.sh+++ b/tests/e2e/scenarios/common.sh@@ -478,14 +478,14 @@ assert_form_page() {fi}-# table.html: Alice Johnson, [email protected], etc.+# table.html: Alice Johnson, [email protected], Active/Inactive statusassert_table_page() {local text="$1"local checks=0echo "$text" | grep -q "Alice Johnson" && ((checks++))echo "$text" | grep -q "[email protected]" && ((checks++))- echo "$text" | grep -q "Engineer" && ((checks++))+ echo "$text" | grep -q "Active" && ((checks++))if [ "$checks" -ge 3 ]; thenecho -e " ${GREEN}✓${NC} table.html: found expected table data"