Skip to content

Commit

Permalink
Refactoring the code
Browse files Browse the repository at this point in the history
  • Loading branch information
sweetymj committed Feb 7, 2025
1 parent dce7727 commit c238ff3
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion integration_tests/e2e/swap-vos-pin-credit-details.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ context('Swap VOs for PIN Credit Details Page', () => {
page.pageTitle().should('include', 'Log swap VOs for PIN credit details')
})
it('should render the page heading correctly', () => {
page.pageHeading().should('have.text', 'Log details')
page.checkOnPage()
})
it('should render the back link with correct text and href', () => {
page.backLink().should('have.text', 'Back').and('have.attr', 'href', '/log/prisoner-details')
Expand Down
2 changes: 0 additions & 2 deletions integration_tests/pages/swapVosDetailsPage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ export default class SwapVosDetailsPage extends Page {

appTypeTitle = () => cy.get('.govuk-caption-xl')

pageHeading = () => cy.get('.govuk-heading-xl')

pageTitle = () => cy.title()

hintText = () => cy.get('#swap-vos-pin-credit-details-hint')
Expand Down

0 comments on commit c238ff3

Please sign in to comment.