Commit 3f69209
committed
tests: Add test for avatar error placeholder.
This adds a new test case to verify the behavior of the AvatarImage widget when the avatar URL fails to load.
The test uses HttpOverrides with a MockHttpClient to reliably simulate a network error. It then asserts that the expected placeholder widget (identified by its icon, ZulipIcons.person) is rendered, ensuring the error handling is working correctly.1 parent 1a37418 commit 3f69209
File tree
9 files changed
+711
-4
lines changed- .fvm
- versions
- android/build/reports/problems
- lib/widgets
- test/widgets
9 files changed
+711
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
0 commit comments