🌐(frontend) add Content-Language on doc access endpoint

We send an internationalized email from
the POST /api/docs/:docId/access endpoint.
We add the language of the website with the
Content-Language header.
This commit is contained in:
Anthony LC
2024-08-15 15:41:58 +02:00
committed by Anthony LC
parent 1abbf0539f
commit 143f1a02eb
3 changed files with 10 additions and 0 deletions

View File

@@ -121,6 +121,9 @@ test.describe('Document create member', () => {
).toBeVisible();
const responseAddUser = await responsePromiseAddUser;
expect(responseAddUser.ok()).toBeTruthy();
expect(responseAddUser.request().headers()['content-language']).toBe(
'en-us',
);
});
test('it try to add twice the same user', async ({ page, browserName }) => {