Wait for the freshly started HWE lobby

This commit is contained in:
2026-07-25 14:31:08 +00:00
parent 33673e0dfd
commit 84c88388b4
@@ -46,8 +46,12 @@ const createGeneral = async (
await login(page, account.username, await readPassword(account.password));
const row = hweRow(page);
await expect(row.getByRole('button', { name: '장수생성' })).toBeVisible();
await expect(row.getByRole('button', { name: '장수생성' })).toBeEnabled();
await expect(row.getByRole('button', { name: '장수생성' })).toBeVisible({
timeout: 60_000,
});
await expect(row.getByRole('button', { name: '장수생성' })).toBeEnabled({
timeout: 60_000,
});
await enterHwe(page);
await expect(page).toHaveURL(/\/hwe\/join$/);
@@ -114,7 +118,9 @@ test('admin resets and opens hwe, then two users create generals and reach main'
await page.getByRole('link', { name: '삼국지 모의전투 HiDCHe' }).click();
await expect(page).toHaveURL(/\/gateway\/lobby$/);
await expect(hweRow(page).getByRole('button', { name: '장수생성' })).toBeEnabled();
await expect(hweRow(page).getByRole('button', { name: '장수생성' })).toBeEnabled({
timeout: 60_000,
});
await expect(page.getByText('서 버 선 택', { exact: true })).toBeVisible();
await page.screenshot({
path: testInfo.outputPath('admin-gateway-main.png'),