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
2395265845
commit
c2814baf13
@@ -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 });
|
||||
|
||||
Reference in New Issue
Block a user