Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions mock-api/msw/handlers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1945,6 +1945,7 @@ export const handlers = makeHandlers({
'slo_url',
'sp_client_id',
'technical_contact_email',
'group_attribute_name',
]),
public_cert,
...getTimestamps(),
Expand Down
29 changes: 28 additions & 1 deletion test/e2e/silos.e2e.ts
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,19 @@ test('Identity providers', async ({ page }) => {
await acsUrlCheckbox.click()
await expect(acsUrlField).toHaveValue(acsUrl)

// fill the rest of the form so we can check the values round-trip
await dialog.getByLabel('Description').fill('test provider description')
await dialog.getByLabel('Technical contact email').fill('admin@test-provider.example.com')
await dialog.getByLabel('Service provider client ID').fill('test-sp-client-id')
await dialog
.getByLabel('Single Logout (SLO) URL')
.fill('https://test-provider.example.com/slo')
await dialog.getByLabel('Entity ID').fill('https://test-provider.example.com/entity')
await dialog.getByLabel('Group attribute name').fill('test-groups')
await dialog
.getByLabel('Metadata source URL')
.fill('https://test-provider.example.com/metadata')

await page.getByRole('button', { name: 'Create provider' }).click()

await closeToast(page)
Expand All @@ -250,14 +263,28 @@ test('Identity providers', async ({ page }) => {
await expectRowVisible(page.getByRole('table'), {
name: 'test-provider',
Type: 'saml',
description: '',
description: 'test provider description',
})

await page.getByRole('link', { name: 'test-provider' }).click()
await expect(nameField).toHaveValue('test-provider')
await expect(nameField).toBeDisabled()
await expect(acsUrlField).toHaveValue(acsUrl)
await expect(acsUrlField).toBeDisabled()
await expect(dialog.getByLabel('Description')).toHaveValue('test provider description')
await expect(dialog.getByLabel('Technical contact email')).toHaveValue(
'admin@test-provider.example.com'
)
await expect(dialog.getByLabel('Service provider client ID')).toHaveValue(
'test-sp-client-id'
)
await expect(dialog.getByLabel('Single Logout (SLO) URL')).toHaveValue(
'https://test-provider.example.com/slo'
)
await expect(dialog.getByLabel('Entity ID')).toHaveValue(
'https://test-provider.example.com/entity'
)
await expect(dialog.getByLabel('Group attribute name')).toHaveValue('test-groups')
})

test('Silo IP pools', async ({ page }) => {
Expand Down
Loading