Two small fixes to tests/e2e/bot/golf-bot.ts needed to run the bot from the soak harness with authenticated accounts: 1. createGame and joinGame now check whether #player-name is visible before filling it. Authenticated sessions hide that input (the server uses the logged-in username); guest sessions still fill it as before. Existing e2e tests behave identically since they register guests who always see the input. 2. startGame's 'decks' option was calling selectOption on #num-decks, which is a hidden input inside a stepper widget, not a <select>. Replaced with stepper-click logic that increments/decrements until the hidden input matches the target value. End-to-end verified via the soak runner: 2 authenticated sessions played a complete 1-hole game against local dev, 26 turns, exit 0. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
17 KiB
17 KiB