Skip to content

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.sh
index 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 tab
pt_post /navigate -d "{\"url\":\"${FIXTURES_URL}/buttons.html\"}"
TAB_ID=$(get_tab_id)
+AFTER_CREATE=$(get_tab_count)
+# Close it
pt_post "/tabs/${TAB_ID}/close" -d '{}'
assert_ok "tab close"
+# Verify count decreased
sleep 1
-assert_tab_closed "$BEFORE"
+assert_tab_closed "$AFTER_CREATE"
end_test
diff --git a/tests/e2e/scenarios/common.sh b/tests/e2e/scenarios/common.sh
index 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 status
assert_table_page() {
local text="$1"
local checks=0
echo "$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 ]; then
echo -e " ${GREEN}✓${NC} table.html: found expected table data"