Skip to content

Commit

Permalink
fix(admin-ui): write test for all pages under auth-server plugin #301
Browse files Browse the repository at this point in the history
  • Loading branch information
syntrydy committed Nov 11, 2021
1 parent e2a1ff8 commit 7d31e72
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions plugins/auth-server/components/Configuration/ConfigPage.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ const config = {
spontaneousScopeLifetime: 86400,
openidSubAttribute: 'inum',

serviceDocumentation: 'http://jans.org/docs',
serviceDocumentation: 'https://jans.org/docs',
claimsLocalesSupported: ['en'],
idTokenTokenBindingCnfValuesSupported: ['tbh'],
uiLocalesSupported: ['en', 'bg', 'de', 'es', 'fr', 'it', 'ru', 'tr'],
Expand All @@ -57,8 +57,8 @@ const config = {
requestUriParameterSupported: true,
requestUriHashVerificationEnabled: false,
requireRequestUriRegistration: false,
opPolicyUri: 'http://www.jans.io/doku.php?id=jans:policy',
opTosUri: 'http://www.jans.io/doku.php?id=jans:tos',
opPolicyUri: 'https://www.jans.io/doku.php?id=jans:policy',
opTosUri: 'https://www.jans.io/doku.php?id=jans:tos',
authorizationCodeLifetime: 60,
refreshTokenLifetime: 14400,
idTokenLifetime: 3600,
Expand Down Expand Up @@ -167,6 +167,8 @@ it('Should render json properties page properly', () => {
waitFor(() => expect(screen.getByText(config.issuer)).toBeInTheDocument())
expect(screen.getByTestId('issuer')).toHaveValue(config.issuer)
expect(screen.getByTestId('baseEndpoint')).toHaveValue(config.baseEndpoint)
expect(screen.getByTestId('authorizationEndpoint')).toHaveValue(config.authorizationEndpoint)
expect(screen.getByTestId('authorizationEndpoint')).toHaveValue(
config.authorizationEndpoint,
)
screen.getByText(/Base Endpoint:/)
})

0 comments on commit 7d31e72

Please sign in to comment.