(frontend) display full name if available

We can get the full name from the OIDC, so we should
display it if available.
This commit is contained in:
Anthony LC
2024-10-24 10:04:39 +02:00
committed by Anthony LC
parent a5af9f0776
commit d8673a8cf7
7 changed files with 15 additions and 5 deletions

View File

@@ -21,6 +21,7 @@ test.describe('Doc Header', () => {
role: 'owner',
user: {
email: 'super@owner.com',
full_name: 'Super Owner',
},
},
{
@@ -65,7 +66,7 @@ test.describe('Doc Header', () => {
card.getByText('Created at 09/01/2021, 11:00 AM'),
).toBeVisible();
await expect(
card.getByText('Owners: super@owner.com / super2@owner.com'),
card.getByText('Owners: Super Owner / super2@owner.com'),
).toBeVisible();
await expect(card.getByText('Your role: Owner')).toBeVisible();
await expect(page.getByRole('button', { name: 'Share' })).toBeVisible();