로그인을 Figma 2단계(로그인 → 간편 로그인)로 · 회원가입 · 약관 동의 · 가입 완료 화면
This commit is contained in:
@@ -166,7 +166,7 @@ void main() {
|
||||
|
||||
/// 숨은 입구 — 로고를 길게 누른다. 보이는 진입점은 두지 않는다.
|
||||
Future<void> openQaForm(WidgetTester tester) async {
|
||||
await tester.longPress(find.text('FANUZU'));
|
||||
await tester.longPress(find.byKey(loginLogoKey));
|
||||
await tester.pump();
|
||||
}
|
||||
|
||||
@@ -187,7 +187,7 @@ void main() {
|
||||
await tester.pumpWidget(
|
||||
MaterialApp(home: LoginScreen(auth: AuthRepository(releaseMode: true))),
|
||||
);
|
||||
await tester.longPress(find.text('FANUZU'));
|
||||
await tester.longPress(find.byKey(loginLogoKey));
|
||||
await tester.pump();
|
||||
expect(find.text('이메일'), findsNothing);
|
||||
expect(find.text('비밀번호'), findsNothing);
|
||||
@@ -198,7 +198,7 @@ void main() {
|
||||
await pump(tester, fake);
|
||||
await openQaForm(tester);
|
||||
|
||||
await tapVisible(tester, find.widgetWithText(FilledButton, '로그인'));
|
||||
await tapVisible(tester, find.widgetWithText(FilledButton, '이메일 로그인'));
|
||||
await tester.pump();
|
||||
expect(find.text('이메일을 입력해 주세요.'), findsOneWidget);
|
||||
expect(fake.lastEmail, isNull);
|
||||
@@ -211,7 +211,7 @@ void main() {
|
||||
|
||||
await tester.enterText(find.byType(TextFormField).first, 'fanuzu.co.kr');
|
||||
await tester.enterText(find.byType(TextFormField).last, 'password12');
|
||||
await tapVisible(tester, find.widgetWithText(FilledButton, '로그인'));
|
||||
await tapVisible(tester, find.widgetWithText(FilledButton, '이메일 로그인'));
|
||||
await tester.pump();
|
||||
expect(find.text('이메일 형식이 올바르지 않습니다.'), findsOneWidget);
|
||||
expect(fake.lastEmail, isNull);
|
||||
@@ -248,7 +248,7 @@ void main() {
|
||||
'fan@fanuzu.co.kr',
|
||||
);
|
||||
await tester.enterText(find.byType(TextFormField).last, 'password12');
|
||||
await tapVisible(tester, find.widgetWithText(FilledButton, '로그인'));
|
||||
await tapVisible(tester, find.widgetWithText(FilledButton, '이메일 로그인'));
|
||||
await tester.pump();
|
||||
await tester.pump();
|
||||
expect(fake.lastEmail, 'fan@fanuzu.co.kr');
|
||||
|
||||
Reference in New Issue
Block a user