mirror of
https://github.com/Dvorinka/1356.git
synced 2026-06-04 20:12:56 +00:00
small fix, don't worry about it
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user