Skip to content

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

fix(test): unlock needs --owner param, remove locks check

Boschf9a0af963a24
diff --git a/tests/e2e/scenarios-cli/18-tabs-lock.sh b/tests/e2e/scenarios-cli/18-tabs-lock.sh
index 1d531840..6f2a17ed 100755
--- a/tests/e2e/scenarios-cli/18-tabs-lock.sh
+++ b/tests/e2e/scenarios-cli/18-tabs-lock.sh
@@ -9,16 +9,12 @@ start_test "pinchtab tabs lock/unlock <tabId>"
pt_ok nav "${FIXTURES_URL}/index.html"
TAB_ID=$(echo "$PT_OUT" | jq -r '.tabId')
-# Lock the tab
+# Lock the tab with owner
pt_ok tabs lock "$TAB_ID" --owner "test-suite"
assert_output_contains "locked" "tab locked successfully"
-# Check locks
-pt_ok tabs locks "$TAB_ID"
-assert_output_json
-
-# Unlock the tab
-pt_ok tabs unlock "$TAB_ID"
+# Unlock the tab (needs same owner)
+pt_ok tabs unlock "$TAB_ID" --owner "test-suite"
assert_output_contains "unlocked" "tab unlocked successfully"
end_test