Skip to content

Commit

Permalink
Merge pull request #40 from digital-land/titleShouldMatchH1
Browse files Browse the repository at this point in the history
Title should match h1
  • Loading branch information
GeorgeGoodall authored Jan 5, 2024
2 parents 7ab909a + 79aa868 commit f524075
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/views/errors.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
{% from 'govuk/components/radios/macro.njk' import govukRadios %}
{% from 'govuk/components/inset-text/macro.njk' import govukInsetText %}

{% set pageName = 'There’s a problem' %}
{% set pageName = 'Your data has errors' %}

{% block content %}
<div class="govuk-grid-row">
Expand All @@ -13,7 +13,7 @@
{{options.dataset}}
</span>
<h1 class="govuk-heading-l">
Your data has errors
{{pageName}}
</h1>

<ul class="govuk-list govuk-list--bullet">
Expand Down
2 changes: 1 addition & 1 deletion test/acceptance/upload_data.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ test('Enter form information and upload a file with errors and without errors',

await page.waitForURL('**/errors')

expect(await page.title()).toBe('There’s a problem - Publish planning and housing data for England')
expect(await page.title()).toBe('Your data has errors - Publish planning and housing data for England')

await page.getByRole('button', { name: 'Upload a new version' }).click()

Expand Down

0 comments on commit f524075

Please sign in to comment.