mirror of
https://github.com/solidtime-io/solidtime.git
synced 2026-12-06 17:52:16 +00:00
Request uncompressed imports response in running import e2e test
This commit is contained in:
committed by
Constantin Graf
parent
e2dc40a305
commit
7fd9f36d69
@@ -238,7 +238,10 @@ test('test that a running import opens its step and does not block the navigatio
|
|||||||
created_at: new Date().toISOString(),
|
created_at: new Date().toISOString(),
|
||||||
};
|
};
|
||||||
await page.route(/\/api\/v1\/organizations\/[^/]+\/imports(\?.*)?$/, async (route) => {
|
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();
|
const json = await response.json();
|
||||||
json.data = [runningImport, ...json.data];
|
json.data = [runningImport, ...json.data];
|
||||||
await route.fulfill({ response, json });
|
await route.fulfill({ response, json });
|
||||||
|
|||||||
Reference in New Issue
Block a user