Skip to content

Commit 3f69209

Browse files
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

9 files changed

+711
-4
lines changed

.fvm/flutter_sdk

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/home/vinodsinghofficial/fvm/versions/main

.fvm/fvm_config.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"flutterSdkVersion": "main"
3+
}

.fvm/release

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
main

.fvm/version

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
3.37.0-0.0.pre

.fvm/versions/main

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/home/vinodsinghofficial/fvm/versions/main

.fvmrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"flutter": "main"
3+
}

0 commit comments

Comments
 (0)