💩(frontend) restore user name / org header

This was added previously and while the organization is not displayed
elsewhere it's better to keep the information displayed somewhere.
This commit is contained in:
Quentin BEY
2025-05-09 10:10:57 +02:00
parent 3d9645b561
commit cb198a9d04
4 changed files with 30 additions and 7 deletions

View File

@@ -19,12 +19,11 @@ test.describe('OIDC interop with SIRET', () => {
});
});
test.describe('When a commune, display commune name below user name', () => {
test('it checks the name is added below the user name', async ({ page }) => {
const logout = page.getByRole('button', {
name: 'Marie Delamairie',
});
await expect(logout.getByText('Merlaut')).toBeVisible();
test.describe('When a commune, display commune name with user name', () => {
test('it checks the name is added with the user name', async ({ page }) => {
// check the name is displayed along with the organization name : name | org name
await expect(
page.getByRole('banner').getByText('Marie Delamairie | Merlaut'),
).toBeVisible();
});
});