Playwright E2E suite (not working yet)

This commit is contained in:
seavor 2026-05-07 09:56:05 -05:00
parent f534cd79b7
commit 68050b56bc
13 changed files with 425 additions and 16 deletions

View file

@ -0,0 +1,54 @@
; Servatrice config used only by the webclient e2e harness.
; Mounted into the servatrice container at /tmp/servatrice.ini by
; docker-compose.e2e.yml. Differs from servatrice-docker.ini by enabling
; registration, skipping email activation, and relaxing per-host rate limits
; so parallel Playwright workers from one machine don't trip them.
[server]
name="Cockatrice E2E"
logfile=server.log
writelog=0
[authentication]
; sql → registration + login hits the real accounts table, so the full
; register-then-login flow is exercised end-to-end.
method=sql
regonly=false
[users]
; Our test usernames are "e2e_" + 6 hex chars = 10 chars. Lower the min so
; that fits with room to spare if we ever shorten the prefix.
minnamelength=4
maxnamelength=12
allowlowercase=true
allowuppercase=true
allownumerics=true
allowedpunctuation=_.-
allowpunctuationprefix=false
disallowedwords="admin"
minpasswordlength=6
[registration]
enabled=true
requireemail=false
requireemailactivation=false
maxaccountsperemail=0
[database]
type=mysql
prefix=cockatrice
hostname=mysql
database=servatrice
user=servatrice
password=password
[security]
trusted_sources="127.0.0.1,::1"
enable_max_user_limit=false
max_users_per_address=0
max_tcp_users_per_address=0
max_websocket_users_per_address=0
[game]
store_replays=false
max_game_inactivity_time=120