Skip to content

Commit

Permalink
MAN-117 - align table header titles (#177)
Browse files Browse the repository at this point in the history
  • Loading branch information
achimber-moj authored Oct 16, 2024
1 parent 157062f commit 4918ea8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions integration_tests/e2e/recentCases.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,10 @@ context('Recent Cases', () => {
.within(() => cy.get('th').eq(1).should('contain.html', 'Date of birth<br>Age'))
cy.get('thead')
.eq(0)
.within(() => cy.get('th').eq(2).should('contain.text', 'Tier'))
.within(() => cy.get('th').eq(2).should('contain.html', '<br>Tier'))
cy.get('thead')
.eq(0)
.within(() => cy.get('th').eq(3).should('contain.text', 'Sentence'))
.within(() => cy.get('th').eq(3).should('contain.html', '<br>Sentence'))

page.createAliasAtIndexWithin('tbody', 0, 'td', 0, 'row1col1')
cy.get('@row1col1').within(() => cy.get('a').invoke('attr', 'href').should('equal', './case/X000001'))
Expand Down
4 changes: 2 additions & 2 deletions server/views/pages/caseload/recent-cases.njk
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
<tr class="govuk-table__row">
<th scope="col" class="govuk-table__header">Name</br>CRN</th>
<th scope="col" class="govuk-table__header">Date of birth</br>Age</th>
<th scope="col" class="govuk-table__header">Tier</th>
<th scope="col" class="govuk-table__header">Sentence</th>
<th scope="col" class="govuk-table__header"></br>Tier</th>
<th scope="col" class="govuk-table__header"></br>Sentence</th>
</tr>
</thead>
<tbody id="tabBody" class="govuk-table__body">
Expand Down

0 comments on commit 4918ea8

Please sign in to comment.