mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-06 05:23:56 -07:00
Playwright E2E suite (not working yet)
This commit is contained in:
parent
f534cd79b7
commit
68050b56bc
13 changed files with 425 additions and 16 deletions
8
webclient/e2e/global-setup.ts
Normal file
8
webclient/e2e/global-setup.ts
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
import { waitForServatriceReady } from './helpers/servatrice';
|
||||
|
||||
export default async function globalSetup(): Promise<void> {
|
||||
// The compose entrypoint sleeps 10s waiting for MySQL. On cold CI runs
|
||||
// building the image on top of that can push the first WS frame well past
|
||||
// 30s, so poll for up to 60s before giving up.
|
||||
await waitForServatriceReady(60_000);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue