style(test): use literal header access
CI / check (push) Successful in 31s
CI / tests-imaging-browsers (push) Successful in 1m30s
CI / tests-integration (push) Successful in 1m52s
CI / tests-unit (push) Successful in 1m58s
CI / tests-quality (push) Successful in 49s
CI / tests-ui (push) Successful in 2m38s
CI / preflight (push) Skipped
CI / deploy (push) Successful in 3m25s

This commit is contained in:
openhands committed 2026-10-16 18:05:29 +02:00
1 parent 8557370d91
commit 6895eaab49
1 file changed
+3 -3
+3 -3
View File
@@ -81,7 +81,7 @@ test("answers conditional requests with 304", async ({ request }) => {
avatarPath({ img_format: "png" }), avatarPath({ img_format: "png" }),
); );
expect(first.status()).toBe(200); expect(first.status()).toBe(200);
const etag = first.headers()["etag"]; const etag = first.headers().etag;
expect(etag).toBeTruthy(); expect(etag).toBeTruthy();
const second = await getThroughEdge( const second = await getThroughEdge(
@@ -92,7 +92,7 @@ test("answers conditional requests with 304", async ({ request }) => {
}, },
); );
expect(second.status()).toBe(304); expect(second.status()).toBe(304);
expect(second.headers()["etag"]).toBe(etag); expect(second.headers().etag).toBe(etag);
}); });
test("serves the rendered avatar behind permissive CORS", async ({ test("serves the rendered avatar behind permissive CORS", async ({
@@ -175,7 +175,7 @@ test("the badge endpoint serves an image and revalidates", async ({
expect(first.status()).toBe(200); expect(first.status()).toBe(200);
expect(first.headers()["content-type"]).toContain("image/"); expect(first.headers()["content-type"]).toContain("image/");
expect(first.headers()["access-control-allow-origin"]).toBe("*"); expect(first.headers()["access-control-allow-origin"]).toBe("*");
const etag = first.headers()["etag"]; const etag = first.headers().etag;
expect(etag).toBeTruthy(); expect(etag).toBeTruthy();
const second = await getThroughEdge(request, "/api/imaging/badge?code=ADM", { const second = await getThroughEdge(request, "/api/imaging/badge?code=ADM", {