Skip to content

Commit

Permalink
DDCE-4700 Fix summaryListId accessability issue (#512)
Browse files Browse the repository at this point in the history
  • Loading branch information
gastonracui authored Nov 7, 2023
1 parent 94b11e1 commit 8ecc3f6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ object GoodsSummaryList {
)
),
classes = "govuk-!-margin-bottom-1",
attributes = Map("id" -> s"summaryListId$idx")
attributes = Map("id" -> s"summaryListId_$idx")
)

private def exportSummary(goods: ExportGoods, idx: Int)(implicit messages: Messages): SummaryList =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ class ReviewGoodsContentSpec extends ReviewGoodsPage with CoreTestData with Prop
}

private def rowTest(rowNumber: Int, key: String, value: String, changeLink: String): Assertion = {
val row = findById("summaryListId1").findElements(By.className("govuk-summary-list__row")).get(rowNumber)
val row = findById("summaryListId_1").findElements(By.className("govuk-summary-list__row")).get(rowNumber)
val rowElement: String => WebElement = className => row.findElement(By.className(className))

rowElement("govuk-summary-list__key").getText mustBe messages(key)
Expand Down

0 comments on commit 8ecc3f6

Please sign in to comment.