Wait for the requested lifecycle operation
This commit is contained in:
@@ -89,10 +89,16 @@ test('admin resets and opens hwe, then two users create generals and reach main'
|
||||
await page.getByTestId('request-reset').click();
|
||||
await expect(page.getByText('초기화 작업을 시작했습니다.')).toBeVisible();
|
||||
|
||||
await expect(page.getByTestId('operations-table')).toContainText('SUCCEEDED', {
|
||||
const latestOperation = page.getByTestId('operations-table').locator('tbody tr').first();
|
||||
await expect(latestOperation).toContainText(sourceCommit, {
|
||||
timeout: 15_000,
|
||||
});
|
||||
await expect(latestOperation.locator('td').nth(3)).toHaveText('SUCCEEDED', {
|
||||
timeout: 300_000,
|
||||
});
|
||||
await expect(page.getByText('RUNNING', { exact: true })).toHaveCount(3, {
|
||||
const profileStatus = page.getByTestId('selected-profile-status');
|
||||
await expect(profileStatus).toContainText('SUCCEEDED');
|
||||
await expect(profileStatus.locator('.text-emerald-400')).toHaveCount(2, {
|
||||
timeout: 30_000,
|
||||
});
|
||||
await page.screenshot({
|
||||
|
||||
@@ -351,7 +351,11 @@ onBeforeUnmount(() => {
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div v-if="selectedProfile" class="grid grid-cols-2 gap-3 text-sm">
|
||||
<div
|
||||
v-if="selectedProfile"
|
||||
class="grid grid-cols-2 gap-3 text-sm"
|
||||
data-testid="selected-profile-status"
|
||||
>
|
||||
<div class="rounded bg-zinc-950 p-3">
|
||||
<div class="text-xs text-zinc-500">목표 상태</div>
|
||||
<div class="mt-1 font-semibold">{{ selectedProfile.status }}</div>
|
||||
|
||||
Reference in New Issue
Block a user