-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3939 from nationalarchives/TDRD-223-add-tna-user-…
…holding-page [TDRD 223] Add holding page for TNA user
- Loading branch information
Showing
4 changed files
with
43 additions
and
1 deletion.
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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
@(name:String)(implicit messages: Messages, request: RequestHeader) | ||
@defining("Welcome to the Transfer Digital Records service") { title => | ||
@main(title, name = name) { | ||
<div class="govuk-grid-row"> | ||
<div class="govuk-grid-column-two-thirds"> | ||
<h1 class="govuk-heading-l govuk-!-margin-bottom-9">@title</h1> | ||
<a href="#" role="button" draggable="false" class="govuk-button" data-module="govuk-button">Transfers for Review</a> | ||
</div> | ||
</div> | ||
} | ||
} |
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 |
---|---|---|
|
@@ -903,6 +903,18 @@ trait FrontEndTestHelper extends PlaySpec with MockitoSugar with Injecting with | |
keycloakMock | ||
} | ||
|
||
def getValidTNAUserKeycloakConfiguration: KeycloakConfiguration = { | ||
val keycloakMock = mock[KeycloakConfiguration] | ||
val accessToken = new AccessToken() | ||
accessToken.setOtherClaims("user_id", "c140d49c-93d0-4345-8d71-c97ff28b947e") | ||
accessToken.setOtherClaims("tna_user", "true") | ||
accessToken.setName("TNA Username") | ||
accessToken.setEmail("[email protected]") | ||
val token = Token(accessToken, new BearerAccessToken) | ||
doAnswer(_ => Some(token)).when(keycloakMock).token(any[String]) | ||
keycloakMock | ||
} | ||
|
||
def getValidKeycloakConfigurationWithoutBody: KeycloakConfiguration = { | ||
val keycloakMock = mock[KeycloakConfiguration] | ||
val accessToken = new AccessToken() | ||
|