번역 평가 버튼 · 내 퀘스트 검토 버튼 · MY 질문 상세 · MY 완료 퀘스트 수 · 행성/성운 칸 · 라운지 빈 상태 수정

This commit is contained in:
Sn-Kinos
2026-10-05 15:12:33 +09:00
parent 5ad229b971
commit f84d696c21
18 changed files with 666 additions and 365 deletions
@@ -7,6 +7,7 @@ import {
collectionGroup,
deleteDoc,
doc,
getCountFromServer,
getDoc,
getDocs,
orderBy,
@@ -267,6 +268,20 @@ describe('가입 목록 — users/{uid}/memberships (C-15)', () => {
});
});
describe('검증 활동 표식 — users/{uid}/verifiedCompletions (MY 완료 퀘스트)', () => {
beforeEach(async () => {
await seedDocuments(testEnvironment, {
'users/alice/verifiedCompletions/q1_20261005': { questId: 'q1' },
});
});
test('본인만 세고 누구도 직접 쓰지 못한다', async () => {
await assertSucceeds(getCountFromServer(collection(dbFor('alice'), 'users/alice/verifiedCompletions')));
await assertFails(getDocs(collection(dbFor('bob'), 'users/alice/verifiedCompletions')));
await assertFails(setDoc(doc(dbFor('alice'), 'users/alice/verifiedCompletions/q2_20261005'), { questId: 'q2' }));
});
});
describe('G-02 — 약관 동의 이력 무결성 회귀', () => {
beforeEach(async () => {
await seedDocuments(testEnvironment, {