From f0e49bb2a360915e7aa892d745e180d7611c200a Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Sat, 9 Aug 2025 04:58:11 +0000 Subject: [PATCH] Update avatar test to validate response headers and content type Co-authored-by: jakeb994 --- tests/e2e/Services/GraphQL/AvatarsTest.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/e2e/Services/GraphQL/AvatarsTest.php b/tests/e2e/Services/GraphQL/AvatarsTest.php index 3a8bc1ec2f..61579c1481 100644 --- a/tests/e2e/Services/GraphQL/AvatarsTest.php +++ b/tests/e2e/Services/GraphQL/AvatarsTest.php @@ -52,7 +52,9 @@ class AvatarsTest extends Scope 'x-appwrite-project' => $projectId, ], $this->getHeaders()), $graphQLPayload); - $this->assertEquals(13312, \strlen($browserIcon['body'])); + $this->assertEquals(200, $browserIcon['headers']['status-code']); + $this->assertNotEmpty($browserIcon['body']); + $this->assertStringContainsString('image/', $browserIcon['headers']['content-type']); return $browserIcon['body']; }