끝난 이클립스 합류 문구 · HOME 헤더 POP · 다국어 HOME 레이아웃 · 캠페인 표시 수정

This commit is contained in:
Sn-Kinos
2026-10-08 19:00:24 +09:00
parent a74edaef6b
commit 40b2c0e6f6
40 changed files with 1649 additions and 845 deletions
+8 -5
View File
@@ -275,7 +275,10 @@ void main() {
});
testWidgets('홈 라이브 띠가 라이브 이벤트를 그린다', (tester) async {
final repo = FakeEclipseRepository();
// 방어 합류는 진행 중인 회차에서만 띠에 오른다(r11 2-5).
final repo = FakeEclipseRepository(
state: eclipseFixture(startAt: DateTime(2026, 9, 13), defense: 1),
);
addTearDown(repo.dispose);
tester.view.physicalSize = const Size(1080, 2400);
tester.view.devicePixelRatio = 2;
@@ -293,16 +296,16 @@ void main() {
);
await tester.pumpAndSettle();
// 이벤트가 없으면 스냅샷의 폴백 문구를 그린다.
expect(find.textContaining('아이템 사용으로 버프가 발동'), findsOneWidget);
// 합류 이벤트가 아직 없으면 발생 소식을 그린다.
expect(find.text('BTS 행성에 이클립스가 발생했어요!'), findsOneWidget);
repo.pushEvents([
LiveEvent(id: 'e1', nickname: '무민', defense: 20, at: DateTime(2026, 9, 14)),
]);
await tester.pumpAndSettle();
// 이벤트가 오면 그 문구가 폴백을 대체한다.
expect(find.textContaining('아이템 사용으로 버프가 발동'), findsNothing);
// 이벤트가 오면 그 문구가 발생 소식을 대체한다.
expect(find.text('BTS 행성에 이클립스가 발생했어요!'), findsNothing);
expect(
find.text('[LIVE] 무민님이 이클립스 방어에 합류했습니다!'),
findsOneWidget,