fix login

This commit is contained in:
davmar
2026-09-10 10:51:45 +02:00
parent 79e4417edb
commit 56cc0fc94c
6 changed files with 269 additions and 182 deletions
+7 -4
View File
@@ -24,7 +24,8 @@ void main() {
await tester.pumpWidget(MyApp(storage: storage, auth: auth));
}
testWidgets('splash shows the app name then opens Home', (tester) async {
testWidgets('splash shows the app name then opens Sign in when logged out',
(tester) async {
await pumpApp(tester);
expect(find.text(kAppName), findsWidgets);
@@ -33,9 +34,9 @@ void main() {
await tester.pump(const Duration(milliseconds: 450));
await tester.pump(const Duration(milliseconds: 350));
expect(find.text('Home'), findsWidgets);
expect(find.text('Overview'), findsOneWidget);
expect(find.byTooltip('Settings'), findsOneWidget);
expect(find.text('Sign in'), findsWidgets);
expect(find.textContaining('Welcome to'), findsOneWidget);
expect(find.text('Home'), findsNothing);
});
test('ConnectStart.fromJson maps authUrl and state', () {
@@ -116,6 +117,7 @@ void main() {
test('look-ahead applies monthly recurring amounts', () {
final items = [
const RecurringItem(
templateId: 'salary',
description: 'Salary',
amount: 2000,
currency: 'EUR',
@@ -123,6 +125,7 @@ void main() {
labelIds: ['salary'],
),
const RecurringItem(
templateId: 'rent',
description: 'Rent',
amount: -900,
currency: 'EUR',