From 7fd9f36d6943224f40940f4b0ade7ba80dd7c0f4 Mon Sep 17 00:00:00 2001 From: Gregor Vostrak Date: Thu, 26 Nov 2026 18:04:59 +0100 Subject: [PATCH] Request uncompressed imports response in running import e2e test --- e2e/import-export.spec.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/e2e/import-export.spec.ts b/e2e/import-export.spec.ts index bb3c3766..c56b6db1 100644 --- a/e2e/import-export.spec.ts +++ b/e2e/import-export.spec.ts @@ -238,7 +238,10 @@ test('test that a running import opens its step and does not block the navigatio created_at: new Date().toISOString(), }; await page.route(/\/api\/v1\/organizations\/[^/]+\/imports(\?.*)?$/, async (route) => { - const response = await route.fetch(); + // Firefox accepts zstd, which the server uses but Playwright can not decode + const response = await route.fetch({ + headers: { ...route.request().headers(), 'accept-encoding': 'identity' }, + }); const json = await response.json(); json.data = [runningImport, ...json.data]; await route.fulfill({ response, json });