-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
✅(e2e) change accounts to facilitate SIRET and add e2e test
We also add registration ID info to the /me endpoint, via serializers
- Loading branch information
Laurent Bossavit
authored and
Laurent Bossavit
committed
Dec 23, 2024
1 parent
c7f23cb
commit d9d724c
Showing
9 changed files
with
59 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -59,7 +59,7 @@ | |
"realmRoles": ["user"] | ||
}, | ||
{ | ||
"username": "marie", | ||
"username": "e2e.marie", | ||
"email": "[email protected]", | ||
"firstName": "Marie", | ||
"lastName": "Devarzy", | ||
|
@@ -70,7 +70,7 @@ | |
"credentials": [ | ||
{ | ||
"type": "password", | ||
"value": "people" | ||
"value": "password-e2e.marie" | ||
} | ||
], | ||
"realmRoles": ["user"] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import { expect, test } from '@playwright/test'; | ||
|
||
import { keyCloakSignIn } from './common'; | ||
|
||
test.beforeEach(async ({ page, browserName }) => { | ||
await page.goto('/'); | ||
await keyCloakSignIn(page, browserName, 'marie'); | ||
}); | ||
|
||
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/', | ||
); | ||
expect(response.ok()).toBeTruthy(); | ||
expect(await response.json()).toMatchObject({ | ||
organization: { registration_id_list: ['21580304000017'] }, | ||
}); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters