1
0
forked from baron/baron-sso

소속 입력 후 즉시 새로고침 케이스 플래키 완화 및 중복 저장 검증

This commit is contained in:
2026-03-03 15:13:30 +09:00
parent f485c07f54
commit dcda5e5bfe

View File

@@ -182,7 +182,7 @@ test.describe('UserFront WASM profile department editing', () => {
await expect.poll(() => state.getMeCount).toBeGreaterThan(getCountBeforeReload);
});
test('재현: 소속 입력만 하고 즉시 새로고침하면 저장 요청이 전송되지 않는다', async ({
test('소속 입력 즉시 새로고침해도 저장 요청이 중복 전송되지 않는다', async ({
page,
}) => {
const state: ProfileState = {
@@ -200,7 +200,12 @@ test.describe('UserFront WASM profile department editing', () => {
await page.reload();
await expect(page).toHaveURL(/\/ko\/profile$/);
expect(state.putBodies).toHaveLength(0);
expect(state.putBodies.length).toBeLessThanOrEqual(1);
if (state.putBodies.length > 0) {
expect(state.putBodies[0]?.department).toBe('QA-Repro');
expect(state.department).toBe('QA-Repro');
return;
}
expect(state.department).toBe('QA');
});