forked from baron/baron-sso
chore: consolidate local integration changes
This commit is contained in:
@@ -13,4 +13,23 @@ void main() {
|
||||
expect(source.contains('_loadAuditLogs('), isFalse);
|
||||
expect(source.contains('/api/v1/audit/auth/timeline'), isFalse);
|
||||
});
|
||||
|
||||
test('나의 App 현황 연동해지 버튼은 단일 라인 텍스트로 렌더링한다', () async {
|
||||
final screenFile = File(
|
||||
'lib/features/dashboard/presentation/dashboard_screen.dart',
|
||||
);
|
||||
final source = await screenFile.readAsString();
|
||||
final revokeLabelIndex = source.lastIndexOf(
|
||||
"tr('ui.userfront.dashboard.revoke.title')",
|
||||
);
|
||||
|
||||
expect(revokeLabelIndex, isNonNegative);
|
||||
final snippetStart = revokeLabelIndex > 500 ? revokeLabelIndex - 500 : 0;
|
||||
final snippetEnd = revokeLabelIndex + 300 < source.length
|
||||
? revokeLabelIndex + 300
|
||||
: source.length;
|
||||
final revokeButtonSource = source.substring(snippetStart, snippetEnd);
|
||||
|
||||
expect(revokeButtonSource, contains('_singleLineText('));
|
||||
});
|
||||
}
|
||||
|
||||
@@ -31,6 +31,10 @@ void main() {
|
||||
}
|
||||
});
|
||||
|
||||
test('Korean linked app revoke action label stays unbreakable', () {
|
||||
expect(koStrings['ui.userfront.dashboard.revoke.title'], '연동해지');
|
||||
});
|
||||
|
||||
test(
|
||||
'TomlAssetLoader excludes non-userfront dictionaries at startup',
|
||||
() async {
|
||||
|
||||
Reference in New Issue
Block a user