Figma 설명 프레임 반영 — 로그인·온보딩·스플래시 · HOME · GALAXY · 퀘스트·이클립스·알림
This commit is contained in:
@@ -198,7 +198,9 @@ void main() {
|
||||
expect(snapshot.popBalance, 12540);
|
||||
expect(snapshot.liveTicker, contains('버프'));
|
||||
expect(snapshot.growth.fandomName, 'BTS');
|
||||
expect(snapshot.growth.contributorName, 'BTS_Hong');
|
||||
// 설명 프레임 `2097:16391` — 인사 줄은 로그인 사용자 기준. 팬덤의 직전 기여자가 아니다.
|
||||
expect(snapshot.growth.contributorName, isNot('BTS_Hong'));
|
||||
expect(snapshot.growth.contributedPop, 0);
|
||||
expect(snapshot.growth.currentPop, 6270);
|
||||
// 서버가 growthPercent 를 주지 않으면 진행도로 낸다.
|
||||
expect(snapshot.growth.growthPercent, 63);
|
||||
@@ -827,14 +829,21 @@ void main() {
|
||||
expect(profile.nickname, '팬');
|
||||
});
|
||||
|
||||
test('홈 기여자명에 이메일이 남아 있어도 가린다', () async {
|
||||
test('홈 인사 줄은 로그인 사용자의 닉네임 · 사진이고 이메일 형태는 가린다', () async {
|
||||
final db = await _seed();
|
||||
await db.doc('fandoms/bts').set({
|
||||
'name': 'BTS', 'lastContributorName': 'test123@naver.com',
|
||||
'lastContributedPop': 10,
|
||||
await db.doc('users/$_uid').set({
|
||||
'nickname': 'ARMY_Kim', 'photoUrl': 'https://example.com/p.png',
|
||||
}, SetOptions(merge: true));
|
||||
final snapshot = await FirestoreHomeRepository(_backend(db)).load();
|
||||
var snapshot = await FirestoreHomeRepository(_backend(db)).load();
|
||||
expect(snapshot.growth.contributorName, 'ARMY_Kim');
|
||||
expect(snapshot.growth.photoUrl, 'https://example.com/p.png');
|
||||
|
||||
await db.doc('users/$_uid').set({
|
||||
'nickname': 'test123@naver.com', 'photoUrl': '',
|
||||
}, SetOptions(merge: true));
|
||||
snapshot = await FirestoreHomeRepository(_backend(db)).load();
|
||||
expect(snapshot.growth.contributorName, '팬');
|
||||
expect(snapshot.growth.photoUrl, isNull);
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user