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

@@ -63,6 +63,7 @@ void main() {
// Act
await tester.pumpWidget(createTestWidget(const SizedBox(), mockCubit));
await tester.pump();
await tester.tap(find.text('Show Bottom Sheet'));
await tester.pumpAndSettle();
@@ -107,6 +108,7 @@ void main() {
// Act
await tester.pumpWidget(createTestWidgetError(const SizedBox(), mockCubit));
await tester.pump();
await tester.tap(find.text('Show Bottom Sheet'));
await tester.pumpAndSettle();