fix login
This commit is contained in:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user