번역 평가 버튼 · 내 퀘스트 검토 버튼 · 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
+30
View File
@@ -226,6 +226,17 @@ void main() {
expect(find.byType(FloatingActionButton), findsOneWidget);
});
testWidgets('글이 하나도 없으면 빈 상태 안내를 띄운다', (tester) async {
await _pumpTall(tester, const PlanetDetailScreen(
repository: _NoPosts(),
eclipse: NoEclipseRepository(),
));
await tester.tap(find.text('팬덤 라운지'));
await tester.pumpAndSettle();
expect(find.text('팬덤 라운지에 자유롭게 글을 작성해 보세요.'), findsOneWidget);
expect(find.byType(FloatingActionButton), findsOneWidget);
});
testWidgets('스크롤하면 히어로가 접히고 탭은 위에 남는다 — 발주사 지적(글이 보이게)', (tester) async {
tester.view.physicalSize = const Size(750, 1624);
tester.view.devicePixelRatio = 2;
@@ -583,3 +594,22 @@ void _fpiRankingTests() {
});
});
}
/// 라운지 글이 0건인 행성.
class _NoPosts extends SamplePlanetRepository {
const _NoPosts();
@override
Future<PlanetDetail> load({required bool nebula}) async {
final d = await super.load(nebula: nebula);
return PlanetDetail(
fandomId: d.fandomId, name: d.name, isNebula: d.isNebula,
totalFpi: d.totalFpi, scores: d.scores, members: d.members,
posts: const [],
);
}
@override
Future<List<LoungePost>> morePosts({required int offset, int limit = 5}) async =>
const [];
}