fix(test): new_character_screen_test 버튼 텍스트 수정

- "UNROLL" → "UNDO" 버튼 텍스트 수정 (l10n.unroll 변경 반영)
This commit is contained in:
JiWoong Sul
2026-01-21 18:43:42 +09:00
parent 73e96bcf50
commit 54a2d128aa

View File

@@ -43,7 +43,7 @@ void main() {
expect(find.text('SOLD!'), findsOneWidget);
});
testWidgets('Unroll button exists and can be tapped', (tester) async {
testWidgets('Undo button exists and can be tapped', (tester) async {
await tester.pumpWidget(
_buildTestApp(
NewCharacterScreen(onCharacterCreated: (_, {bool testMode = false}) {}),
@@ -51,12 +51,12 @@ void main() {
);
await tester.pumpAndSettle();
// Unroll 버튼 확인 (RetroTextButton이 대문자로 변환)
final unrollButton = find.text('UNROLL');
expect(unrollButton, findsOneWidget);
// Undo 버튼 확인 (l10n.unroll이 영어에서 "Undo"로 번역되고 대문자로 변환)
final undoButton = find.text('UNDO');
expect(undoButton, findsOneWidget);
// Unroll 버튼 탭
await tester.tap(unrollButton);
// Undo 버튼 탭
await tester.tap(undoButton);
await tester.pumpAndSettle();
// Total이 표시되는지 확인 (TOTAL은 대문자로 표시됨)