From 33673e0dfdc525c3f91e407b6e5e983611f92d4d Mon Sep 17 00:00:00 2001 From: hided62 Date: Sat, 25 Jul 2026 14:29:00 +0000 Subject: [PATCH] Distinguish repeated lifecycle reset requests --- app/gateway-frontend/e2e/hwe-lifecycle.spec.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/app/gateway-frontend/e2e/hwe-lifecycle.spec.ts b/app/gateway-frontend/e2e/hwe-lifecycle.spec.ts index 4a79aba..c2c8de9 100644 --- a/app/gateway-frontend/e2e/hwe-lifecycle.spec.ts +++ b/app/gateway-frontend/e2e/hwe-lifecycle.spec.ts @@ -86,10 +86,16 @@ test('admin resets and opens hwe, then two users create generals and reach main' await page.getByTestId('load-scenarios').click(); await expect(page.getByText(/개 시나리오를 확인했습니다/)).toBeVisible(); await page.getByTestId('scenario-select').selectOption('2'); + const latestOperation = page.getByTestId('operations-table').locator('tbody tr').first(); + const previousLatestOperation = await latestOperation.textContent(); await page.getByTestId('request-reset').click(); await expect(page.getByText('초기화 작업을 시작했습니다.')).toBeVisible(); - const latestOperation = page.getByTestId('operations-table').locator('tbody tr').first(); + await expect + .poll(() => latestOperation.textContent(), { + timeout: 15_000, + }) + .not.toBe(previousLatestOperation); await expect(latestOperation).toContainText(sourceCommit, { timeout: 15_000, });