mirror of
https://github.com/rzuasti/oott.git
synced 2026-07-08 19:21:54 +02:00
Move welcome message into first-run backend config dialog
Drop the standalone welcome card from the Settings screen and show the greeting inside the non-dismissible first-run configuration dialog, noting that OOTT cannot function without a backend installed in the network. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.8
parent
55192d5665
commit
8b2c8e7285
@@ -88,15 +88,22 @@ void main() {
|
||||
);
|
||||
});
|
||||
|
||||
testWidgets('shows the welcome intro when no server is configured', (
|
||||
tester,
|
||||
) async {
|
||||
await PrefUtil.setValue('base_url', '');
|
||||
await pumpScreen(tester, const Settings());
|
||||
await tester.pump(const Duration(milliseconds: 10));
|
||||
testWidgets(
|
||||
'shows the welcome intro in the config dialog when no server is configured',
|
||||
(tester) async {
|
||||
await PrefUtil.setValue('base_url', '');
|
||||
await pumpScreen(tester, const Settings());
|
||||
await tester.pumpAndSettle();
|
||||
|
||||
expect(find.textContaining('Welcome to OOTT'), findsOneWidget);
|
||||
});
|
||||
// The first-run dialog opens automatically and carries the welcome note.
|
||||
expect(find.text('Backend configuration'), findsOneWidget);
|
||||
expect(find.textContaining('Welcome to OOTT'), findsOneWidget);
|
||||
expect(
|
||||
find.textContaining('cannot function without a backend'),
|
||||
findsOneWidget,
|
||||
);
|
||||
},
|
||||
);
|
||||
|
||||
testWidgets('hides the welcome intro once a server is configured', (
|
||||
tester,
|
||||
|
||||
Reference in New Issue
Block a user