fix: handle null context in MarkdownHtmlWidget and improve test stability with pumpAndSettle calls

This commit is contained in:
mso7nueh
2026-01-13 13:03:58 +03:00
parent 7b425e56f1
commit c786821275
9 changed files with 22 additions and 1 deletions

View File

@@ -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);