Erst schauen, dann klicken: aktiver Reiter, offene Tische, Klick nur im Fenster; Tests ohne echten Client

Live 30.10. the bot clicked the Practice tab it was already on and the
user saw clicks beside the window. Lobby: read the active tab (.active-tab,
measured) and click only if needed, then verify it switched; never Join a
table whose window is open (fill and self-heal). A real mouse click is only
sent when the point and its scattered end lie inside the target window
(KlickAusserhalb, a FensterNichtVorn), and not at all without a lobby
window. Two mcp_server_spec tests patched the wrong name and clicked the
real lobby with the real mouse whenever CoinPoker ran - they now patch
lobby_adapter and demand an opened table; tests/lauf.py blocks the real
debug port for every spec.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-30 11:01:09 +01:00
co-authored by Claude Opus 5.5
parent 26531d7299
commit bbadd2b2f3
8 changed files with 255 additions and 18 deletions
+10 -1
View File
@@ -36,10 +36,19 @@ def _specs(nur_kette=False, ohne_kette=False):
return namen
# Abschirmung: keine Spec erreicht den echten Client über seinen Debug-Port (9333) - live 30.10.
# klickte ein Test sonst mit der echten Maus in die echte Lobby. Klon-Ketten setzen ihren Port selbst.
SPERRPORT = "1"
def umgebung():
return dict(os.environ, CDP_PORT=SPERRPORT)
def _lauf(name):
beginn = time.time()
r = subprocess.run([sys.executable, os.path.join(HIER, name)],
capture_output=True, text=True, timeout=1800)
capture_output=True, text=True, timeout=1800, env=umgebung())
aus = r.stdout + r.stderr
treffer = re.search(r"^Ran (\d+) tests?.*$", aus, re.M)
zahl = int(treffer.group(1)) if treffer else 0