Skip to content

Commit

Permalink
Update govuk-frontend to 5.2.0
Browse files Browse the repository at this point in the history
An change has been made here alphagov/govuk-frontend@51f174d which means the summary text has some new line characters in it.
  • Loading branch information
jsrobertson committed Feb 26, 2024
1 parent eb8e20d commit c157935
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions integration_tests/pages/page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ export default abstract class Page {
summaryCardElement: JQuery<HTMLElement>,
): void {
cy.wrap(summaryCardElement).within(() => {
cy.get('.govuk-summary-card__title').should('have.text', title)
cy.get('.govuk-summary-card__title').should('contain.text', title)

cy.get('.govuk-summary-list__value').then(keylessSummaryCardBodyElement => {
const { actual, expected } = Helpers.parseHtml(keylessSummaryCardBodyElement, body)
Expand Down Expand Up @@ -428,7 +428,7 @@ export default abstract class Page {
summaryCardElement: JQuery<HTMLElement>,
): void {
cy.wrap(summaryCardElement).within(() => {
cy.get('.govuk-summary-card__title').should('have.text', title)
cy.get('.govuk-summary-card__title').should('contain.text', title)

actions.forEach((action, actionIndex) => {
cy.get('.govuk-summary-card__actions .govuk-link')
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@
"express-prom-bundle": "^7.0.0",
"express-session": "^1.17.3",
"fishery": "^2.2.2",
"govuk-frontend": "^5.1.0",
"govuk-frontend": "^5.2.0",
"helmet": "^7.0.0",
"http-errors": "^2.0.0",
"jquery": "^3.6.4",
Expand Down

0 comments on commit c157935

Please sign in to comment.