Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CEDS-6111 Remove 'View Declaration Summary' link on 'Submission Amendment' page #2192

Merged
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
3 changes: 2 additions & 1 deletion app/views/summary/holding_page.scala.html
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@

@govukLayout(
title = Title(title),
headContentOnJavaScriptDisabled = Some(headContentOnJavaScriptDisabled)
headContentOnJavaScriptDisabled = Some(headContentOnJavaScriptDisabled),
showDeclarationSummaryLink = false
) {
@pageTitle(messages(title))

Expand Down
4 changes: 4 additions & 0 deletions test/views/summary/HoldingViewSpec.scala
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,10 @@ class HoldingViewSpec extends UnitViewSpec with GivenWhenThen with Injector {
view.getElementsByTag("script").iterator.asScala.toList.filter(_.text.contains("window.location.href"))
}

"not include a 'View Declaration Summary' link" in {
Option(view.getElementById("view_declaration_summary")) mustBe None
}

"include the expected redirection (no)script when javascript is disabled" in {
val content = s"$expectedPollingTimeInSeconds; url=$holdingPageUrl"
val meta = s"""<meta http-equiv="refresh" content="$content">"""
Expand Down