diff --git a/src/frontend/apps/desk/src/features/footer/Footer.tsx b/src/frontend/apps/desk/src/features/footer/Footer.tsx
index ee9a22914..c73ad7b89 100644
--- a/src/frontend/apps/desk/src/features/footer/Footer.tsx
+++ b/src/frontend/apps/desk/src/features/footer/Footer.tsx
@@ -83,7 +83,11 @@ export const Footer = () => {
`}
>
{label}
-
+
))}
@@ -157,7 +161,11 @@ export const Footer = () => {
`}
>
licence etalab-2.0
-
+
diff --git a/src/frontend/apps/desk/src/features/header/AccountDropdown.tsx b/src/frontend/apps/desk/src/features/header/AccountDropdown.tsx
index 13c77b5ca..eca93d4f3 100644
--- a/src/frontend/apps/desk/src/features/header/AccountDropdown.tsx
+++ b/src/frontend/apps/desk/src/features/header/AccountDropdown.tsx
@@ -15,7 +15,7 @@ export const AccountDropdown = () => {
button={
{t('My account')}
-
+
arrow_drop_down
@@ -24,7 +24,11 @@ export const AccountDropdown = () => {
@@ -64,7 +68,11 @@ export const MemberAction = ({
setIsDropOpen(false);
}}
color="primary-text"
- icon={delete}
+ icon={
+
+ delete
+
+ }
>
{t('Remove from group')}
diff --git a/src/frontend/apps/desk/src/features/teams/member-management/components/MemberGrid.tsx b/src/frontend/apps/desk/src/features/teams/member-management/components/MemberGrid.tsx
index 9f5e0bc5d..2ed3b1b53 100644
--- a/src/frontend/apps/desk/src/features/teams/member-management/components/MemberGrid.tsx
+++ b/src/frontend/apps/desk/src/features/teams/member-management/components/MemberGrid.tsx
@@ -107,7 +107,7 @@ export const MemberGrid = ({ team, currentRole }: MemberGridProps) => {
{currentRole !== Role.MEMBER && (
diff --git a/src/frontend/apps/desk/src/features/teams/team-management/components/CardCreateTeam.tsx b/src/frontend/apps/desk/src/features/teams/team-management/components/CardCreateTeam.tsx
index 30b9cc361..985c67657 100644
--- a/src/frontend/apps/desk/src/features/teams/team-management/components/CardCreateTeam.tsx
+++ b/src/frontend/apps/desk/src/features/teams/team-management/components/CardCreateTeam.tsx
@@ -40,9 +40,10 @@ export const CardCreateTeam = () => {
{t('Create a new group')}
diff --git a/src/frontend/apps/desk/src/features/teams/team-management/components/InputTeamName.tsx b/src/frontend/apps/desk/src/features/teams/team-management/components/InputTeamName.tsx
index fe8df73ae..3a58903c3 100644
--- a/src/frontend/apps/desk/src/features/teams/team-management/components/InputTeamName.tsx
+++ b/src/frontend/apps/desk/src/features/teams/team-management/components/InputTeamName.tsx
@@ -40,7 +40,6 @@ export const InputTeamName = ({
setTeamName(e.target.value);
setIsInputError(false);
}}
- rightIcon={edit}
state={isInputError ? 'error' : 'default'}
/>
{isError && error && }
diff --git a/src/frontend/apps/desk/src/features/teams/team-management/components/ModalRemoveTeam.tsx b/src/frontend/apps/desk/src/features/teams/team-management/components/ModalRemoveTeam.tsx
index d50224d6f..326a17c67 100644
--- a/src/frontend/apps/desk/src/features/teams/team-management/components/ModalRemoveTeam.tsx
+++ b/src/frontend/apps/desk/src/features/teams/team-management/components/ModalRemoveTeam.tsx
@@ -72,7 +72,12 @@ export const ModalRemoveTeam = ({ onClose, team }: ModalRemoveTeamProps) => {
size={ModalSize.MEDIUM}
title={
-
+
{t('Deleting the {{teamName}} team', { teamName: team.name })}
@@ -106,6 +111,7 @@ export const ModalRemoveTeam = ({ onClose, team }: ModalRemoveTeamProps) => {
{
size={ModalSize.MEDIUM}
title={
-
+
{t('Update team {{teamName}}', { teamName: team.name })}
diff --git a/src/frontend/apps/desk/src/features/teams/team-management/components/TeamActions.tsx b/src/frontend/apps/desk/src/features/teams/team-management/components/TeamActions.tsx
index d29c65a5b..77e716f5d 100644
--- a/src/frontend/apps/desk/src/features/teams/team-management/components/TeamActions.tsx
+++ b/src/frontend/apps/desk/src/features/teams/team-management/components/TeamActions.tsx
@@ -43,7 +43,11 @@ export const TeamActions = ({ currentRole, team }: TeamActionsProps) => {
setIsDropOpen(false);
}}
color="primary-text"
- icon={edit}
+ icon={
+
+ edit
+
+ }
>
{t('Update the team')}
@@ -54,7 +58,11 @@ export const TeamActions = ({ currentRole, team }: TeamActionsProps) => {
setIsDropOpen(false);
}}
color="primary-text"
- icon={delete}
+ icon={
+
+ delete
+
+ }
>
{t('Delete the team')}
diff --git a/src/frontend/apps/desk/src/features/teams/team-management/components/TeamInfo.tsx b/src/frontend/apps/desk/src/features/teams/team-management/components/TeamInfo.tsx
index 25bc6cb1e..71adf8d62 100644
--- a/src/frontend/apps/desk/src/features/teams/team-management/components/TeamInfo.tsx
+++ b/src/frontend/apps/desk/src/features/teams/team-management/components/TeamInfo.tsx
@@ -44,9 +44,10 @@ export const TeamInfo = ({ team, currentRole }: TeamInfoProps) => {
{
expect(screen.getByRole('status')).toBeInTheDocument();
- expect(
- await screen.findByLabelText('Empty teams icon'),
- ).toBeInTheDocument();
+ expect(await screen.findByLabelText('Empty team icon')).toBeInTheDocument();
});
it('renders a team with only 1 member', async () => {
@@ -81,9 +79,7 @@ describe('PanelTeams', () => {
expect(screen.getByRole('status')).toBeInTheDocument();
- expect(
- await screen.findByLabelText('Empty teams icon'),
- ).toBeInTheDocument();
+ expect(await screen.findByLabelText('Empty team icon')).toBeInTheDocument();
});
it('renders a non-empty team', async () => {
diff --git a/src/frontend/apps/desk/src/features/teams/teams-panel/components/PanelActions.tsx b/src/frontend/apps/desk/src/features/teams/teams-panel/components/PanelActions.tsx
index 277c629a1..38dcc617f 100644
--- a/src/frontend/apps/desk/src/features/teams/teams-panel/components/PanelActions.tsx
+++ b/src/frontend/apps/desk/src/features/teams/teams-panel/components/PanelActions.tsx
@@ -41,7 +41,12 @@ export const PanelActions = () => {
$background={isSortAsc ? colorsTokens()['primary-200'] : 'transparent'}
$color={colorsTokens()['primary-600']}
>
-
+
{
$color={colorsTokens()['primary-600']}
tabIndex={-1}
>
-
+
diff --git a/src/frontend/apps/desk/src/features/teams/teams-panel/components/TeamItem.tsx b/src/frontend/apps/desk/src/features/teams/teams-panel/components/TeamItem.tsx
index 957ce2b08..49cab20e6 100644
--- a/src/frontend/apps/desk/src/features/teams/teams-panel/components/TeamItem.tsx
+++ b/src/frontend/apps/desk/src/features/teams/teams-panel/components/TeamItem.tsx
@@ -77,7 +77,7 @@ export const TeamItem = ({ team }: TeamProps) => {
/>
) : (
Défenseur des droits dans votre région1>",
"accessibility-form-defenseurdesdroits": "Écrire un message au<1>Défenseur des droits1>",
- "icon group": "icône groupe",
"mail domains list loading": "chargement de la liste des domaines de messagerie",
"{{count}} member_many": "{{count}} membres",
"{{count}} member_one": "{{count}} membre",
diff --git a/src/frontend/apps/desk/src/pages/404.tsx b/src/frontend/apps/desk/src/pages/404.tsx
index d87d520e4..555e41f61 100644
--- a/src/frontend/apps/desk/src/pages/404.tsx
+++ b/src/frontend/apps/desk/src/pages/404.tsx
@@ -19,7 +19,7 @@ const Page: NextPageWithLayout = () => {
return (
-
+
{t('Ouch!')}
diff --git a/src/frontend/apps/e2e/__tests__/app-desk/common.ts b/src/frontend/apps/e2e/__tests__/app-desk/common.ts
index 70ac65c80..2b338233e 100644
--- a/src/frontend/apps/e2e/__tests__/app-desk/common.ts
+++ b/src/frontend/apps/e2e/__tests__/app-desk/common.ts
@@ -56,7 +56,7 @@ export const addNewMember = async (
response.url().includes(`/users/?q=${fillText}`) &&
response.status() === 200,
);
- await page.getByLabel('Add members to the team').click();
+ await page.getByLabel('Add a member to the team').click();
const inputSearch = page.getByLabel(/Find a member to add to the team/);
// Select a new user
@@ -74,7 +74,7 @@ export const addNewMember = async (
// Choose a role
await page.getByRole('radio', { name: role }).click();
- await page.getByRole('button', { name: 'Validate' }).click();
+ await page.getByRole('button', { name: 'Add to group' }).click();
const table = page.getByLabel('List members card').getByRole('table');
diff --git a/src/frontend/apps/e2e/__tests__/app-desk/header.spec.ts b/src/frontend/apps/e2e/__tests__/app-desk/header.spec.ts
index f681e2a36..30a407bc0 100644
--- a/src/frontend/apps/e2e/__tests__/app-desk/header.spec.ts
+++ b/src/frontend/apps/e2e/__tests__/app-desk/header.spec.ts
@@ -19,7 +19,8 @@ test.describe('Header', () => {
header.getByAltText('Freedom Equality Fraternity Logo'),
).toBeVisible();
- await expect(header.getByAltText('Régie Logo')).toBeVisible();
+ await expect(header.getByRole('link', { name: 'Régie' })).toBeVisible();
+
await expect(header.locator('h2').getByText('Régie')).toHaveCSS(
'color',
'rgb(0, 0, 145)',
@@ -35,7 +36,7 @@ test.describe('Header', () => {
}),
).toBeVisible();
- await expect(header.getByAltText('Language Icon')).toBeVisible();
+ await expect(header.getByRole('combobox').getByText('EN')).toBeVisible();
await expect(header.getByText('My account')).toBeVisible();
});
diff --git a/src/frontend/apps/e2e/__tests__/app-desk/member-create.spec.ts b/src/frontend/apps/e2e/__tests__/app-desk/member-create.spec.ts
index 1b6b62739..23c3a5bf9 100644
--- a/src/frontend/apps/e2e/__tests__/app-desk/member-create.spec.ts
+++ b/src/frontend/apps/e2e/__tests__/app-desk/member-create.spec.ts
@@ -14,7 +14,7 @@ test.describe('Members Create', () => {
}) => {
await createTeam(page, 'member-open-modal', browserName, 1);
- await page.getByLabel('Add members to the team').click();
+ await page.getByLabel('Add a member to the team').click();
await expect(
page.getByRole('dialog').getByText('Add a member'),
@@ -23,7 +23,9 @@ test.describe('Members Create', () => {
page.getByLabel(/Find a member to add to the team/),
).toBeVisible();
- await expect(page.getByRole('button', { name: 'Validate' })).toBeVisible();
+ await expect(
+ page.getByRole('button', { name: 'Add to group' }),
+ ).toBeVisible();
await expect(page.getByRole('button', { name: 'Cancel' })).toBeVisible();
});
@@ -34,7 +36,7 @@ test.describe('Members Create', () => {
);
await createTeam(page, 'member-modal-search-user', browserName, 1);
- await page.getByLabel('Add members to the team').click();
+ await page.getByLabel('Add a member to the team').click();
await expect(page.getByRole('radio', { name: 'Owner' })).toBeHidden();
@@ -95,7 +97,7 @@ test.describe('Members Create', () => {
await createTeam(page, 'member-invitation', browserName, 1);
- await page.getByLabel('Add members to the team').click();
+ await page.getByLabel('Add a member to the team').click();
// Select a new email
const inputSearch = page.getByLabel(/Find a member to add to the team/);
@@ -124,7 +126,7 @@ test.describe('Members Create', () => {
response.url().includes('/accesses/') && response.status() === 201,
);
- await page.getByRole('button', { name: 'Validate' }).click();
+ await page.getByRole('button', { name: 'Add to group' }).click();
// Check invitation sent
await expect(page.getByText(`Invitation sent to ${email}`)).toBeVisible();
@@ -151,7 +153,7 @@ test.describe('Members Create', () => {
await createTeam(page, 'member-twice', browserName, 1);
- await page.getByLabel('Add members to the team').click();
+ await page.getByLabel('Add a member to the team').click();
const inputSearch = page.getByLabel(/Find a member to add to the team/);
await inputSearch.fill('test');
@@ -169,7 +171,7 @@ test.describe('Members Create', () => {
response.url().includes('/accesses/') && response.status() === 201,
);
- await page.getByRole('button', { name: 'Validate' }).click();
+ await page.getByRole('button', { name: 'Add to group' }).click();
await expect(
page.getByText(`Member ${users[0].name} added to the team`),
@@ -177,7 +179,7 @@ test.describe('Members Create', () => {
const responseAddMember = await responsePromiseAddMember;
expect(responseAddMember.ok()).toBeTruthy();
- await page.getByLabel('Add members to the team').click();
+ await page.getByLabel('Add a member to the team').click();
await inputSearch.fill('test');
await expect(
@@ -191,7 +193,7 @@ test.describe('Members Create', () => {
}) => {
await createTeam(page, 'invitation-twice', browserName, 1);
- await page.getByLabel('Add members to the team').click();
+ await page.getByLabel('Add a member to the team').click();
const inputSearch = page.getByLabel(/Find a member to add to the team/);
@@ -207,14 +209,14 @@ test.describe('Members Create', () => {
response.url().includes('/invitations/') && response.status() === 201,
);
- await page.getByRole('button', { name: 'Validate' }).click();
+ await page.getByRole('button', { name: 'Add to group' }).click();
// Check invitation sent
await expect(page.getByText(`Invitation sent to ${email}`)).toBeVisible();
const responseCreateInvitation = await responsePromiseCreateInvitation;
expect(responseCreateInvitation.ok()).toBeTruthy();
- await page.getByLabel('Add members to the team').click();
+ await page.getByLabel('Add a member to the team').click();
await inputSearch.fill(email);
await expect(page.getByRole('option', { name: email })).toBeHidden();
diff --git a/src/frontend/apps/e2e/__tests__/app-desk/member-delete.spec.ts b/src/frontend/apps/e2e/__tests__/app-desk/member-delete.spec.ts
index 2529f6207..1529aacfe 100644
--- a/src/frontend/apps/e2e/__tests__/app-desk/member-delete.spec.ts
+++ b/src/frontend/apps/e2e/__tests__/app-desk/member-delete.spec.ts
@@ -28,7 +28,9 @@ test.describe('Members Delete', () => {
'You are the last owner, you cannot be removed from your team.',
),
).toBeVisible();
- await expect(page.getByRole('button', { name: 'Validate' })).toBeDisabled();
+ await expect(
+ page.getByRole('button', { name: 'Remove from the group' }),
+ ).toBeDisabled();
});
test('it deletes himself when it is not the last owner', async ({
@@ -49,7 +51,7 @@ test.describe('Members Delete', () => {
await cells.nth(4).getByLabel('Member options').click();
await page.getByLabel('Open the modal to delete this member').click();
- await page.getByRole('button', { name: 'Validate' }).click();
+ await page.getByRole('button', { name: 'Remove from the group' }).click();
await expect(
page.getByText(`The member has been removed from the team`),
).toBeVisible();
@@ -76,7 +78,9 @@ test.describe('Members Delete', () => {
await expect(
page.getByText(`You cannot remove other owner.`),
).toBeVisible();
- await expect(page.getByRole('button', { name: 'Validate' })).toBeDisabled();
+ await expect(
+ page.getByRole('button', { name: 'Remove from the group' }),
+ ).toBeDisabled();
});
test('it deletes admin member', async ({ page, browserName }) => {
@@ -94,7 +98,7 @@ test.describe('Members Delete', () => {
await cells.nth(4).getByLabel('Member options').click();
await page.getByLabel('Open the modal to delete this member').click();
- await page.getByRole('button', { name: 'Validate' }).click();
+ await page.getByRole('button', { name: 'Remove from the group' }).click();
await expect(
page.getByText(`The member has been removed from the team`),
).toBeVisible();
@@ -161,7 +165,7 @@ test.describe('Members Delete', () => {
await cells.nth(4).getByLabel('Member options').click();
await page.getByLabel('Open the modal to delete this member').click();
- await page.getByRole('button', { name: 'Validate' }).click();
+ await page.getByRole('button', { name: 'Remove from the group' }).click();
await expect(
page.getByText(`The member has been removed from the team`),
).toBeVisible();
diff --git a/src/frontend/apps/e2e/__tests__/app-desk/teams-create.spec.ts b/src/frontend/apps/e2e/__tests__/app-desk/teams-create.spec.ts
index e58493ac2..499f899da 100644
--- a/src/frontend/apps/e2e/__tests__/app-desk/teams-create.spec.ts
+++ b/src/frontend/apps/e2e/__tests__/app-desk/teams-create.spec.ts
@@ -19,7 +19,7 @@ test.describe('Teams Create', () => {
await expect(card.getByLabel('Team name')).toBeVisible();
- await expect(card.getByLabel('icon group')).toBeVisible();
+ await expect(card.getByLabel('Group icon')).toBeVisible();
await expect(
card.getByRole('heading', {