번역 평가 버튼 · 내 퀘스트 검토 버튼 · MY 질문 상세 · MY 완료 퀘스트 수 · 행성/성운 칸 · 라운지 빈 상태 수정
This commit is contained in:
@@ -11,6 +11,7 @@ import 'package:fancake/features/planet/planet_data.dart';
|
||||
import 'package:fancake/features/translation/translation_comments.dart';
|
||||
import 'package:firebase_auth_mocks/firebase_auth_mocks.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:fancake/core/theme/app_theme.dart';
|
||||
import 'package:flutter_localizations/flutter_localizations.dart';
|
||||
import 'package:flutter_test/flutter_test.dart';
|
||||
|
||||
@@ -40,6 +41,8 @@ void main() {
|
||||
addTearDown(tester.view.reset);
|
||||
await tester.pumpWidget(
|
||||
MaterialApp(
|
||||
// 실제 앱 테마 — 테마의 버튼 최소 크기가 마킹 버튼을 가린 적이 있다(10/5 실기기).
|
||||
theme: buildAppTheme(),
|
||||
locale: const Locale('ko'),
|
||||
supportedLocales: appLocales,
|
||||
localizationsDelegates: const [
|
||||
@@ -228,6 +231,15 @@ void main() {
|
||||
await pump(tester, repo);
|
||||
// 작성자 이름이 비어 있으면 「팬」.
|
||||
expect(find.text('팬'), findsOneWidget);
|
||||
// 두 버튼이 같은 줄에 보이는 크기로 있어야 누를 수 있다.
|
||||
final validBox = tester.getRect(
|
||||
find.widgetWithText(OutlinedButton, '유효 0'),
|
||||
);
|
||||
final invalidBox = tester.getRect(
|
||||
find.widgetWithText(OutlinedButton, '무효 0'),
|
||||
);
|
||||
expect(invalidBox.width, greaterThan(0));
|
||||
expect(validBox.top, invalidBox.top);
|
||||
await tester.tap(find.text('무효 0'));
|
||||
await tester.pumpAndSettle();
|
||||
expect(repo.marks, 1);
|
||||
|
||||
Reference in New Issue
Block a user