💬(frontend) update texts
- change message showed in mailbox list when none exist - change CTA button text for group management modals - fix 404 page title - update translations - update related e2e tests
This commit is contained in:
committed by
Sebastien Nobour
parent
d812197381
commit
72340db74c
@@ -114,6 +114,10 @@ export function MailDomainsContent({ mailDomain }: { mailDomain: MailDomain }) {
|
||||
displayGoto: false,
|
||||
}}
|
||||
aria-label={t('Mailboxes list')}
|
||||
hideEmptyPlaceholderImage={true}
|
||||
emptyPlaceholderLabel={t(
|
||||
'No mail box was created with this mail domain.',
|
||||
)}
|
||||
/>
|
||||
</Card>
|
||||
</>
|
||||
|
||||
@@ -158,7 +158,7 @@ export const ModalAddMembers = ({
|
||||
disabled={!selectedMembers.length || isPending}
|
||||
onClick={() => void handleValidate()}
|
||||
>
|
||||
{t('Validate')}
|
||||
{t('Add to group')}
|
||||
</Button>
|
||||
}
|
||||
size={ModalSize.MEDIUM}
|
||||
|
||||
@@ -75,7 +75,7 @@ export const ModalDelete = ({ access, onClose, team }: ModalDeleteProps) => {
|
||||
}}
|
||||
disabled={isNotAllowed}
|
||||
>
|
||||
{t('Validate')}
|
||||
{t('Remove from the group')}
|
||||
</Button>
|
||||
}
|
||||
size={ModalSize.MEDIUM}
|
||||
|
||||
@@ -16,6 +16,7 @@
|
||||
"Add a team": "Ajouter un groupe",
|
||||
"Add members to the team": "Ajoutez des membres à votre groupe",
|
||||
"Add team icon": "Icône ajout de groupe",
|
||||
"Add to group": "Ajouter au groupe",
|
||||
"Address: National Agency for Territorial Cohesion - 20, avenue de Ségur TSA 10717 75 334 Paris Cedex 07 Paris": "Adresse : Agence Nationale de la Cohésion des Territoires - 20, avenue de Ségur TSA 10717 75 334 Paris Cedex 07",
|
||||
"Administration": "Administration",
|
||||
"All fields are mandatory.": "Tous les champs sont obligatoires.",
|
||||
@@ -90,6 +91,7 @@
|
||||
"My account": "Mon compte",
|
||||
"Names": "Noms",
|
||||
"New name...": "Nouveau nom...",
|
||||
"No mail box was created with this mail domain.": "Aucune boîte mail n'a été créée avec ce nom de domaine.",
|
||||
"Nothing exceptional, no special privileges related to a .gouv.fr.": "Rien d'exceptionnel, pas de privilèges spéciaux liés à un .gouv.fr.",
|
||||
"Open the mail domains panel": "Ouvrir le panneau des domaines de messagerie",
|
||||
"Open the member options modal": "Ouvrir les options de membre dans la fenêtre modale",
|
||||
@@ -97,7 +99,7 @@
|
||||
"Open the modal to update the role of this member": "Ouvrir la fenêtre modale pour mettre à jour le rôle de ce membre",
|
||||
"Open the team options": "Ouvrir les options de groupe",
|
||||
"Open the teams panel": "Ouvrir le panneau des groupes",
|
||||
"Ouch !": "Ouch !",
|
||||
"Ouch!": "Aïe !",
|
||||
"Owner": "Propriétaire",
|
||||
"Personal data and cookies": "Données personnelles et cookies",
|
||||
"Please enter a valid email address.\nE.g. : jean.dupont@mail.fr": "Veuillez entrer une adresse e-mail valide.\nEx. : jean.dupont@mail.fr",
|
||||
@@ -108,7 +110,8 @@
|
||||
"Radio buttons to update the roles": "Boutons radio pour mettre à jour les rôles",
|
||||
"Remedy": "Voie de recours",
|
||||
"Remove from group": "Retirer du groupe",
|
||||
"Remove this member from the group": "Retirer ce membre du groupe",
|
||||
"Remove from the group": "Retirer du groupe",
|
||||
"Remove this member from the group": "Retirer le membre du groupe",
|
||||
"Roles": "Rôles",
|
||||
"Régie": "Régie",
|
||||
"Régie Logo": "Logo Régie",
|
||||
|
||||
@@ -22,7 +22,7 @@ const Page: NextPageWithLayout = () => {
|
||||
<Icon404 aria-label="Image 404" role="img" />
|
||||
|
||||
<Text $size="h2" $weight="700" $theme="greyscale" $variation="900">
|
||||
{t('Ouch !')}
|
||||
{t('Ouch!')}
|
||||
</Text>
|
||||
|
||||
<Text as="p" $textAlign="center" $maxWidth="400px" $size="m">
|
||||
|
||||
@@ -119,7 +119,9 @@ test.describe('Mail domain', () => {
|
||||
page.getByRole('heading', { name: /domain\.fr/ }).first(),
|
||||
).toBeVisible();
|
||||
|
||||
await expect(page.getByText('This table is empty')).toBeVisible();
|
||||
await expect(
|
||||
page.getByText('No mail box was created with this mail domain.'),
|
||||
).toBeVisible();
|
||||
});
|
||||
|
||||
test('checks all the elements are visible when domain exists and contains 2 pages of mailboxes', async ({
|
||||
|
||||
@@ -17,6 +17,7 @@ test.describe('Team', () => {
|
||||
).shift();
|
||||
|
||||
await expect(page.getByLabel('icon group')).toBeVisible();
|
||||
|
||||
await expect(
|
||||
page.getByRole('heading', {
|
||||
name: teamName,
|
||||
|
||||
Reference in New Issue
Block a user