forked from baron/baron-sso
dev 반영 code check 오류 수정
This commit is contained in:
@@ -78,7 +78,7 @@ void main() {
|
||||
);
|
||||
final detail = tr(
|
||||
'msg.userfront.error.whitelist.settings_disabled',
|
||||
fallback: internalErrorWhitelistMessages['settings_disabled']!,
|
||||
fallback: tr(internalErrorWhitelistMessageKeys['settings_disabled']!),
|
||||
);
|
||||
final type = tr(
|
||||
'msg.userfront.error.type',
|
||||
@@ -160,7 +160,7 @@ void main() {
|
||||
|
||||
final detail = tr(
|
||||
'msg.userfront.error.whitelist.not_found',
|
||||
fallback: internalErrorWhitelistMessages['not_found']!,
|
||||
fallback: tr(internalErrorWhitelistMessageKeys['not_found']!),
|
||||
);
|
||||
final type = tr(
|
||||
'msg.userfront.error.type',
|
||||
@@ -185,7 +185,7 @@ void main() {
|
||||
|
||||
final detail = tr(
|
||||
'msg.userfront.error.whitelist.rate_limited',
|
||||
fallback: internalErrorWhitelistMessages['rate_limited']!,
|
||||
fallback: tr(internalErrorWhitelistMessageKeys['rate_limited']!),
|
||||
);
|
||||
final type = tr(
|
||||
'msg.userfront.error.type',
|
||||
@@ -214,28 +214,12 @@ void main() {
|
||||
},
|
||||
);
|
||||
|
||||
final title = tr(
|
||||
'msg.userfront.error.tenant.page_title',
|
||||
fallback: '애플리케이션 접근이 제한되었습니다',
|
||||
);
|
||||
final detail = tr(
|
||||
'msg.userfront.error.tenant.detail',
|
||||
fallback: '현재 로그인된 계정은 이 애플리케이션에 접근할 수 없습니다.',
|
||||
);
|
||||
final account = tr('msg.userfront.error.tenant.account', fallback: '계정');
|
||||
final primaryTenant = tr(
|
||||
'msg.userfront.error.tenant.primary_tenant',
|
||||
fallback: '대표 소속 테넌트',
|
||||
);
|
||||
final affiliatedTenants = tr(
|
||||
'msg.userfront.error.tenant.affiliated_tenants',
|
||||
fallback: '전체 소속 테넌트',
|
||||
);
|
||||
final switchAccount = tr(
|
||||
'ui.userfront.error.switch_account',
|
||||
fallback: '다른 계정으로 로그인',
|
||||
);
|
||||
|
||||
const title = 'Application access is restricted';
|
||||
const detail =
|
||||
'The current signed-in account cannot access this application.';
|
||||
const account = 'Account';
|
||||
const primaryTenant = 'Primary affiliated tenant';
|
||||
const affiliatedTenants = 'All affiliated tenants';
|
||||
expect(find.text(title), findsOneWidget);
|
||||
expect(find.text(detail), findsOneWidget);
|
||||
expect(find.text(account), findsOneWidget);
|
||||
@@ -243,7 +227,8 @@ void main() {
|
||||
expect(find.text(primaryTenant), findsOneWidget);
|
||||
expect(find.text(affiliatedTenants), findsOneWidget);
|
||||
expect(find.text('Baron HQ'), findsNWidgets(2));
|
||||
expect(find.text(switchAccount), findsOneWidget);
|
||||
expect(find.byType(ElevatedButton), findsOneWidget);
|
||||
expect(find.byType(OutlinedButton), findsOneWidget);
|
||||
});
|
||||
|
||||
testWidgets('tenant_not_allowed는 details를 우선 사용해 계정과 테넌트 정보를 노출한다', (
|
||||
|
||||
Reference in New Issue
Block a user