27 lines
970 B
Dart
27 lines
970 B
Dart
import 'package:eatvio_app/core/app_export.dart';
|
|
import 'package:flutter/material.dart';
|
|
import 'package:flutter_test/flutter_test.dart';
|
|
import 'package:eatvio_app/presentation/profile/my_profile_screen/my_profile_screen.dart';
|
|
import 'package:eatvio_app/presentation/profile/my_profile_screen/bloc/my_profile_bloc.dart';
|
|
import 'package:eatvio_app/presentation/profile/my_profile_screen/models/my_profile_model.dart';
|
|
|
|
void main() {
|
|
group('MyProfileScreen', () {
|
|
testWidgets('renders CircularProgressIndicator in initial state',
|
|
(WidgetTester tester) async {
|
|
final myProfileBloc = MyProfileBloc(MyProfileState(
|
|
myProfileModelObj:
|
|
MyProfileModel(),),); // Ensure that MyProfileModel is non-nullable
|
|
|
|
await tester.pumpWidget(
|
|
MaterialApp(
|
|
home: BlocProvider<MyProfileBloc>.value(
|
|
value: myProfileBloc,
|
|
child: MyProfileScreen(),
|
|
),
|
|
),
|
|
);
|
|
});
|
|
});
|
|
}
|