약관 동의 화면의 개인정보처리방침 보기에 처리방침 임시 문구 표시

This commit is contained in:
Sn-Kinos
2026-10-12 04:07:04 +09:00
parent 6e0aa5d43c
commit 3511ba2de9
2 changed files with 68 additions and 15 deletions
+18
View File
@@ -117,6 +117,24 @@ void main() {
expect(find.text('개인정보처리방침'), findsOneWidget);
});
testWidgets('개인정보처리방침 보기는 약관 문구가 아닌 처리방침 문구를 보여 준다', (tester) async {
await tester.pumpWidget(const MaterialApp(home: TermsScreen()));
await tester.pumpAndSettle();
await tester.tap(find.byKey(const ValueKey('privacy-policy-link')));
await tester.pumpAndSettle();
final body = tester
.widget<Text>(
find.descendant(
of: find.byType(AlertDialog),
matching: find.textContaining('임시 문구'),
),
)
.data!;
expect(body, contains('개인정보처리방침'));
expect(body, isNot(contains('서비스 이용약관')));
});
testWidgets('이미 동의한 계정은 약관 없이 HOME', (tester) async {
final auth = AuthRepository(
providers: [