A better state and alerts

This commit is contained in:
2026-02-23 20:19:07 +08:00
parent 0b900d3480
commit 1074572905
17 changed files with 673 additions and 428 deletions
+6
View File
@@ -10,6 +10,7 @@ import 'package:tasq/providers/user_offices_provider.dart';
import 'package:tasq/providers/auth_provider.dart';
import 'package:tasq/screens/profile/profile_screen.dart';
import 'package:tasq/widgets/multi_select_picker.dart';
import 'package:awesome_snackbar_content/awesome_snackbar_content.dart';
class _FakeProfileController implements ProfileController {
String? lastFullName;
@@ -121,6 +122,11 @@ void main() {
await tester.pumpAndSettle();
expect(fake.lastFullName, equals('New Name'));
// should show a success snackbar using the awesome_snackbar_content package
expect(find.byType(AwesomeSnackbarContent), findsOneWidget);
// our helper adds a leading icon for even short messages
expect(find.byIcon(Icons.check_circle), findsOneWidget);
});
testWidgets('save offices assigns selected office', (tester) async {