✨(anct) fetch and display organization names of communes
ANCT-specific extraction of organization names for communes, front end changes to match.
This commit is contained in:
committed by
Laurent Bossavit
parent
d495ef3e19
commit
20cc173e93
@@ -9,9 +9,6 @@ test.beforeEach(async ({ page, browserName }) => {
|
||||
|
||||
test.describe('OIDC interop with SIRET', () => {
|
||||
test('it checks the SIRET is displayed in /me endpoint', async ({ page }) => {
|
||||
const header = page.locator('header').first();
|
||||
await expect(header.getByAltText('Marianne Logo')).toBeVisible();
|
||||
|
||||
const response = await page.request.get(
|
||||
'http://localhost:8071/api/v1.0/users/me/',
|
||||
);
|
||||
@@ -21,3 +18,16 @@ 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 header = page.locator('header').first();
|
||||
await expect(header.getByAltText('Marianne Logo')).toBeVisible();
|
||||
|
||||
const logout = page.getByRole('button', {
|
||||
name: 'Marie Delamairie',
|
||||
});
|
||||
|
||||
await expect(logout.getByText('Varzy')).toBeVisible();
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user