-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #180 from DEFRA/DSFAAP-764_accessibility-statement
Accessibility statement page
- Loading branch information
Showing
12 changed files
with
168 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`#accessibilityStatementPage should render expected response and content 1`] = ` | ||
" | ||
<div class="govuk-grid-row"> | ||
<div class="govuk-grid-column-two-thirds"> | ||
<div class="govuk-body" data-testid="app-page-body"> | ||
<h1 class="govuk-heading-l">Accessibility statement</h1> | ||
<p class="govuk-body"> | ||
Accessibility statement for Get permission to move animals under | ||
disease control. | ||
</p> | ||
<h2 class="govuk-heading-m"> | ||
How you should be able to use this website | ||
</h2> | ||
<p class="govuk-body"> | ||
We want as many people as possible to be able to use this website. | ||
</p> | ||
<p class="govuk-body">You should be able to:</p> | ||
<ul class="govuk-list govuk-list--bullet"> | ||
<li> | ||
Change colours, contrast levels and fonts using browser or device | ||
settings | ||
</li> | ||
<li>Zoom in up to 200% without the text spilling off the screen</li> | ||
<li> | ||
Navigate most of the website using a keyboard or speech recognition | ||
software | ||
</li> | ||
<li> | ||
Listen to most of the website using a screen reader (including the | ||
most recent versions of JAWS, NVDA and VoiceOver) | ||
</li> | ||
<li> | ||
We also make the website text as simple as possible to understand | ||
</li> | ||
</ul> | ||
<h2 class="govuk-heading-m">How accessible this website is</h2> | ||
<p class="govuk-body"> | ||
While most of this website is fully accessible, we are engaging in a | ||
full accessibility audit that may uncover unknown accessibility | ||
issues. If you encounter any, please | ||
<a data-testid="feedback-link" target="_blank" class="govuk-link" href="https://defragroup.eu.qualtrics.com/jfe/form/SV_7ZDFNwIA2wLF9lk">give your feedback (opens in new tab) | ||
</a> | ||
to let us know how we can improve. | ||
</p> | ||
</div> | ||
</div> | ||
</div> | ||
" | ||
`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
import { Page } from '~/src/server/common/model/page/page-model.js' | ||
import { PageController } from '~/src/server/common/controller/page-controller/page-controller.js' | ||
|
||
const pageTitle = 'Accessibility statement' | ||
|
||
export class AccessibilityStatementPage extends Page { | ||
sectionKey = 'policies' | ||
key = 'accessibility-statement' | ||
pageTitle = pageTitle | ||
pageHeading = pageTitle | ||
urlPath = '/accessibility-statement' | ||
view = 'accessibility/index' | ||
} | ||
|
||
export const accessibilityStatementPage = new AccessibilityStatementPage() | ||
|
||
/** | ||
* @satisfies {ServerRegisterPluginObject<void>} | ||
*/ | ||
export const accessibilityStatement = new PageController( | ||
accessibilityStatementPage | ||
).plugin() | ||
|
||
/** | ||
* @import { ServerRegisterPluginObject } from '@hapi/hapi' | ||
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
{% | ||
extends | ||
'layouts/page.njk' | ||
%} | ||
{% block content %} | ||
<div class="govuk-grid-row"> | ||
<div class="govuk-grid-column-two-thirds"> | ||
<div class="govuk-body" data-testid="app-page-body"> | ||
<h1 class="govuk-heading-l">{{ heading }}</h1> | ||
<p class="govuk-body"> | ||
Accessibility statement for Get permission to move animals under | ||
disease control. | ||
</p> | ||
|
||
<h2 class="govuk-heading-m"> | ||
How you should be able to use this website | ||
</h2> | ||
<p class="govuk-body"> | ||
We want as many people as possible to be able to use this website. | ||
</p> | ||
<p class="govuk-body">You should be able to:</p> | ||
<ul class="govuk-list govuk-list--bullet"> | ||
<li> | ||
Change colours, contrast levels and fonts using browser or device | ||
settings | ||
</li> | ||
<li>Zoom in up to 200% without the text spilling off the screen</li> | ||
<li> | ||
Navigate most of the website using a keyboard or speech recognition | ||
software | ||
</li> | ||
<li> | ||
Listen to most of the website using a screen reader (including the | ||
most recent versions of JAWS, NVDA and VoiceOver) | ||
</li> | ||
<li> | ||
We also make the website text as simple as possible to understand | ||
</li> | ||
</ul> | ||
|
||
<h2 class="govuk-heading-m">How accessible this website is</h2> | ||
<p class="govuk-body"> | ||
While most of this website is fully accessible, we are engaging in a | ||
full accessibility audit that may uncover unknown accessibility | ||
issues. If you encounter any, please | ||
<a | ||
data-testid="feedback-link" | ||
target="_blank" | ||
class="govuk-link" | ||
href="https://defragroup.eu.qualtrics.com/jfe/form/SV_7ZDFNwIA2wLF9lk" | ||
>give your feedback (opens in new tab) | ||
</a> | ||
to let us know how we can improve. | ||
</p> | ||
</div> | ||
</div> | ||
</div> | ||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import { describePageSnapshot } from '../common/test-helpers/snapshot-page.js' | ||
|
||
describePageSnapshot({ | ||
describes: '#accessibilityStatementPage', | ||
it: 'should render expected response and content', | ||
pageUrl: '/accessibility-statement' | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,7 @@ | ||
import { describePageSnapshot } from '../common/test-helpers/snapshot-page.js' | ||
|
||
describePageSnapshot({ | ||
describes: '#destinationSummaryController', | ||
describes: '#cookiesPolicyPage', | ||
it: 'should render expected response and content', | ||
pageUrl: '/cookies' | ||
}) | ||
|
||
/** | ||
* @import { Server } from '@hapi/hapi' | ||
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
user-journey-tests/page-objects/accessibilityStatementPage.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import { Page } from './page.js' | ||
|
||
const pageHeadingAndTitle = 'Accessibility statement' | ||
|
||
class AccessibilityStatementPage extends Page { | ||
pagePath = '/accessibility-statement' | ||
pageHeading = pageHeadingAndTitle | ||
pageTitle = pageHeadingAndTitle | ||
} | ||
|
||
export default new AccessibilityStatementPage() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters