fix(test): new_character_screen_test 버튼 텍스트 수정
- "UNROLL" → "UNDO" 버튼 텍스트 수정 (l10n.unroll 변경 반영)
This commit is contained in:
@@ -43,7 +43,7 @@ void main() {
|
|||||||
expect(find.text('SOLD!'), findsOneWidget);
|
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(
|
await tester.pumpWidget(
|
||||||
_buildTestApp(
|
_buildTestApp(
|
||||||
NewCharacterScreen(onCharacterCreated: (_, {bool testMode = false}) {}),
|
NewCharacterScreen(onCharacterCreated: (_, {bool testMode = false}) {}),
|
||||||
@@ -51,12 +51,12 @@ void main() {
|
|||||||
);
|
);
|
||||||
await tester.pumpAndSettle();
|
await tester.pumpAndSettle();
|
||||||
|
|
||||||
// Unroll 버튼 확인 (RetroTextButton이 대문자로 변환)
|
// Undo 버튼 확인 (l10n.unroll이 영어에서 "Undo"로 번역되고 대문자로 변환)
|
||||||
final unrollButton = find.text('UNROLL');
|
final undoButton = find.text('UNDO');
|
||||||
expect(unrollButton, findsOneWidget);
|
expect(undoButton, findsOneWidget);
|
||||||
|
|
||||||
// Unroll 버튼 탭
|
// Undo 버튼 탭
|
||||||
await tester.tap(unrollButton);
|
await tester.tap(undoButton);
|
||||||
await tester.pumpAndSettle();
|
await tester.pumpAndSettle();
|
||||||
|
|
||||||
// Total이 표시되는지 확인 (TOTAL은 대문자로 표시됨)
|
// Total이 표시되는지 확인 (TOTAL은 대문자로 표시됨)
|
||||||
|
|||||||
Reference in New Issue
Block a user