Skip to content

Commit

Permalink
Update tests for GOV.UK Frontend v5 header changes
Browse files Browse the repository at this point in the history
  • Loading branch information
colinrotherham committed Nov 30, 2023
1 parent 6728198 commit dd37d5d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,9 @@ describe('clear data page', () => {

cy.task('log', 'Add some data')
cy.visit(`/question-check?most-impressive-trick=${encodeURIComponent(answer)}`)
cy.get('.govuk-header__logotype-text')
cy.get('.govuk-header__logotype')
cy.visit('/manage-prototype/plugins?abc=def')
cy.get('.govuk-header__logotype-text')
cy.get('.govuk-header__logotype')

cy.task('log', 'Check data has been saved')
cy.visit('/question-check')
Expand Down
2 changes: 1 addition & 1 deletion cypress/e2e/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const waitForApplication = async (path = '/index') => {
log(`Waiting for app to restart and load ${path} page`)
cy.task('waitUntilAppRestarts')
cy.visit(path)
cy.get('.govuk-header__logotype-text')
cy.get('.govuk-header__logotype')
.contains('GOV.UK')
}

Expand Down

0 comments on commit dd37d5d

Please sign in to comment.