1차 보완(0.1.1+14) 내용 합치기
This commit is contained in:
@@ -63,7 +63,10 @@ void main() {
|
||||
test('에러 카탈로그 ID 는 경로와 무관하게 E-AUTH-08 이다', () {
|
||||
// 문구만 갈랐다. 카탈로그를 손대면 Admin·QA 의 코드 대조가 어긋난다.
|
||||
expect(
|
||||
authCatalogCode(_exception('account-exists-with-different-credential')),
|
||||
authCatalogCode(
|
||||
_exception('account-exists-with-different-credential'),
|
||||
flow: AuthFlow.signIn,
|
||||
),
|
||||
'E-AUTH-08',
|
||||
);
|
||||
});
|
||||
@@ -87,7 +90,7 @@ void main() {
|
||||
// 「등록되지 않은 이메일」과 「비밀번호 오류」가 같은 문구로 나가야 한다.
|
||||
for (final code in ['user-not-found', 'wrong-password']) {
|
||||
expect(
|
||||
authMessage(_exception(code), flow: AuthFlow.signIn),
|
||||
authMessage(_exception(code), flow: AuthFlow.email),
|
||||
'이메일 또는 비밀번호를 확인해 주세요.',
|
||||
reason: code,
|
||||
);
|
||||
@@ -95,6 +98,47 @@ void main() {
|
||||
});
|
||||
});
|
||||
|
||||
group('소셜 웹 로그인 실패 · 중단 — 이메일 문구를 쓰지 않는다(10/8 실기기 LINE · R01)', () {
|
||||
const webCodes = [
|
||||
'web-context-already-presented',
|
||||
'web-network-request-failed',
|
||||
'web-internal-error',
|
||||
'internal-error',
|
||||
'invalid-credential',
|
||||
];
|
||||
|
||||
test('소셜 로그인 · 연결의 알 수 없는 실패는 E-AUTH-03 · 소셜 문구', () {
|
||||
for (final code in webCodes) {
|
||||
for (final flow in [AuthFlow.signIn, AuthFlow.link]) {
|
||||
expect(authCatalogCode(_exception(code), flow: flow), 'E-AUTH-03', reason: '$code $flow');
|
||||
expect(
|
||||
authMessage(_exception(code), flow: flow),
|
||||
isNot('이메일 또는 비밀번호를 확인해 주세요.'),
|
||||
reason: '$code $flow',
|
||||
);
|
||||
}
|
||||
}
|
||||
expect(
|
||||
authMessage(_exception('web-context-already-presented'), flow: AuthFlow.signIn),
|
||||
'로그인이 완료되지 않았습니다. 다시 시도해 주세요.',
|
||||
);
|
||||
expect(
|
||||
authMessage(_exception('web-network-request-failed'), flow: AuthFlow.signIn),
|
||||
'네트워크 연결을 확인한 뒤 다시 시도해 주세요.',
|
||||
);
|
||||
expect(authMessage(_exception('internal-error'), flow: AuthFlow.signIn), '소셜 로그인에 실패했습니다.');
|
||||
});
|
||||
|
||||
test('이메일 폼만 E-AUTH-01 · 「이메일 또는 비밀번호」', () {
|
||||
expect(authCatalogCode(_exception('internal-error'), flow: AuthFlow.email), 'E-AUTH-01');
|
||||
expect(authMessage(_exception('internal-error'), flow: AuthFlow.email), '이메일 또는 비밀번호를 확인해 주세요.');
|
||||
});
|
||||
|
||||
test('취소는 성공이 아니고 다시 시도하라고 안내한다', () {
|
||||
expect(authNotice(const AuthCancelled()), '로그인이 완료되지 않았습니다. 다시 시도해 주세요.');
|
||||
});
|
||||
});
|
||||
|
||||
// 10/4 실기기 2-3 — Android Apple 로그인 다이얼로그에 「발주사 키」 · 설정 항목이 떴다.
|
||||
test('설정 전 제공자 안내는 내부 설정 항목을 내보내지 않는다', () {
|
||||
final notice = authNotice(
|
||||
|
||||
Reference in New Issue
Block a user