A better state and alerts
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user