small fix, don't worry about it

This commit is contained in:
Tomas Dvorak
2026-04-10 12:05:40 +02:00
parent 7b7ed0083f
commit 5ab2773f98
55 changed files with 3240 additions and 483 deletions
@@ -73,12 +73,18 @@ void main() {
),
);
await tester.pumpAndSettle();
await tester.scrollUntilVisible(
find.text('About the Challenge'),
300,
scrollable: find.byType(Scrollable),
);
await tester.pumpAndSettle();
expect(find.text('About'), findsOneWidget);
expect(find.text('About the Challenge'), findsOneWidget);
});
testWidgets('should display account settings option',
testWidgets('should display edit profile option',
(WidgetTester tester) async {
await tester.pumpWidget(
const ProviderScope(
@@ -90,7 +96,7 @@ void main() {
await tester.pumpAndSettle();
expect(find.text('Account Settings'), findsOneWidget);
expect(find.text('Edit Profile'), findsOneWidget);
});
testWidgets('should display notification settings option',
@@ -108,7 +114,7 @@ void main() {
expect(find.text('Notifications'), findsOneWidget);
});
testWidgets('should display privacy settings option',
testWidgets('should display profile visibility option',
(WidgetTester tester) async {
await tester.pumpWidget(
const ProviderScope(
@@ -118,9 +124,15 @@ void main() {
),
);
await tester.pumpAndSettle();
await tester.scrollUntilVisible(
find.text('Profile Visibility'),
300,
scrollable: find.byType(Scrollable),
);
await tester.pumpAndSettle();
expect(find.text('Privacy Settings'), findsOneWidget);
expect(find.text('Profile Visibility'), findsOneWidget);
});
testWidgets('should display about challenge option',
@@ -133,6 +145,12 @@ void main() {
),
);
await tester.pumpAndSettle();
await tester.scrollUntilVisible(
find.text('About the Challenge'),
300,
scrollable: find.byType(Scrollable),
);
await tester.pumpAndSettle();
expect(find.text('About the Challenge'), findsOneWidget);