forked from eatvio/eatvio_app
fix: handle null context in MarkdownHtmlWidget and improve test stability with pumpAndSettle calls
This commit is contained in:
@@ -54,6 +54,7 @@ void main() {
|
||||
home: ChangePasswordScreen(settingsEntity: settingsEntity),
|
||||
),
|
||||
);
|
||||
await tester.pumpAndSettle();
|
||||
|
||||
expect(find.byType(ChangePasswordScreen), findsOneWidget);
|
||||
expect(find.text('Смена пароля'), findsOneWidget);
|
||||
@@ -80,6 +81,7 @@ void main() {
|
||||
home: ChangePasswordScreen(settingsEntity: settingsEntity),
|
||||
),
|
||||
);
|
||||
await tester.pumpAndSettle();
|
||||
|
||||
expect(find.byType(AppBar), findsOneWidget);
|
||||
expect(find.text('Смена пароля'), findsOneWidget);
|
||||
|
||||
Reference in New Issue
Block a user