mirror of
https://github.com/kmc7468/arkvault.git
synced 2026-11-04 08:10:28 +09:00
Playwright 기반 E2E 테스트 추가
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
306fcb2420
commit
bb0328b39e
14 files changed
+890
No files matched your search
@@ -0,0 +1,15 @@
|
||||
import { BASE_URL } from "./app.ts";
|
||||
|
||||
// Waits until the app is ready (e.g. migrations are done)
|
||||
export default async function globalSetup() {
|
||||
for (let i = 0; i < 120; i++) {
|
||||
try {
|
||||
const res = await fetch(`${BASE_URL}/auth/login`);
|
||||
if (res.ok) return;
|
||||
} catch {
|
||||
// Not ready yet
|
||||
}
|
||||
await new Promise((resolve) => setTimeout(resolve, 500));
|
||||
}
|
||||
throw new Error("The app didn't start");
|
||||
}
|
||||
Reference in new issue
Block a user