Files
SpotiFLAC-Mobile/test/tutorial_copy_test.dart
T
zarzet 37e21b5712 feat(branding): rename app and native backend to Mornye
Rename the Dart package, Android and iOS identifiers, Rust crates, native libraries, and Discord plugin. Preserve legacy data readers and compatibility aliases.

Update localized branding, documentation, artwork, build tooling, and release artifacts. Route Telegram release notifications to @mornyeupdates and link @mornyecommunity.
2026-10-20 12:00:44 +07:00

43 lines
1.6 KiB
Dart

import 'package:flutter/widgets.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:mornye/l10n/app_localizations.dart';
void main() {
group('setup and tutorial copy', () {
test('uses the current app name and extension-based workflow', () {
for (final locale in AppLocalizations.supportedLocales) {
final strings = lookupAppLocalizations(locale);
final setupTagline = strings.setupDownloadInFlac.toLowerCase();
final firstTip = strings.tutorialWelcomeTip1.toLowerCase();
expect(
strings.tutorialWelcomeTitle,
contains('Mornye'),
reason: 'Unexpected app name for $locale',
);
expect(strings.appName, 'Mornye', reason: 'App name for $locale');
expect(
setupTagline,
isNot(contains('spotify')),
reason: 'Provider-specific setup tagline for $locale',
);
expect(
firstTip,
isNot(anyOf(contains('spotify'), contains('deezer'))),
reason: 'Provider-specific tutorial tip for $locale',
);
}
});
test('English and Indonesian describe the current feature set', () {
final english = lookupAppLocalizations(const Locale('en'));
final indonesian = lookupAppLocalizations(const Locale('id'));
expect(english.tutorialWelcomeDesc, contains('extensions'));
expect(english.tutorialLibraryTip2, contains('built-in player'));
expect(indonesian.tutorialWelcomeDesc, contains('ekstensi'));
expect(indonesian.tutorialLibraryTip2, contains('pemutar bawaan'));
});
});
}