forked from baron/baron-sso
[WIP]모바일 로그인창 테스트 강화중
This commit is contained in:
@@ -14,7 +14,7 @@ void main() {
|
||||
);
|
||||
});
|
||||
|
||||
test('explicit debug flag applies in development-like environment', () {
|
||||
test('explicit true enables debug in development-like environment', () {
|
||||
expect(
|
||||
LogPolicy.debugEnabled(appEnv: 'dev', productionDebugFlag: 'true'),
|
||||
isTrue,
|
||||
@@ -23,13 +23,16 @@ void main() {
|
||||
LogPolicy.debugEnabled(appEnv: 'development', productionDebugFlag: '1'),
|
||||
isTrue,
|
||||
);
|
||||
});
|
||||
|
||||
test('explicit false does not suppress local debug in development', () {
|
||||
expect(
|
||||
LogPolicy.debugEnabled(appEnv: 'dev', productionDebugFlag: 'false'),
|
||||
isFalse,
|
||||
isTrue,
|
||||
);
|
||||
expect(
|
||||
LogPolicy.debugEnabled(appEnv: 'development', productionDebugFlag: '0'),
|
||||
isFalse,
|
||||
isTrue,
|
||||
);
|
||||
});
|
||||
|
||||
|
||||
@@ -43,6 +43,10 @@ void main() {
|
||||
|
||||
expect(translations['ui.admin.nav.api_keys'], isNull);
|
||||
expect(translations['ui.dev.console_title'], isNull);
|
||||
expect(
|
||||
translations['err.userfront.auth_proxy.login_failed'],
|
||||
'Login failed.',
|
||||
);
|
||||
expect(translations['ui.userfront.login.action.submit'], 'Sign in');
|
||||
expect(translations['ui.common.theme_light'], 'Light');
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user