generated from DEFRA/ffc-template-node
-
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.
* feat: change page title and texts changes * feat: remove change link on view page * feat: fix typo
- Loading branch information
1 parent
c107793
commit 5ec9e5f
Showing
9 changed files
with
32 additions
and
30 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
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
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 |
---|---|---|
|
@@ -70,21 +70,18 @@ describe('View Application test', () => { | |
const res = await global.__SERVER__.inject(options) | ||
expect(res.statusCode).toBe(200) | ||
const $ = cheerio.load(res.payload) | ||
expect($('h1.govuk-heading-l').text()).toContain(`Application ${reference}`) | ||
expect($('h1.govuk-heading-l').text()).toContain('Submitted') | ||
expect($('title').text()).toContain(`Application ${reference}`) | ||
expect($('h1.govuk-caption-l').text()).toContain(`Application ${reference}`) | ||
expect($('h2.govuk-heading-l').text()).toContain('Submitted') | ||
expect($('title').text()).toContain('Back office: User Application') | ||
expect($('.govuk-summary-list__row').length).toEqual(3) | ||
expect($('.govuk-summary-list__key').eq(0).text()).toMatch('SBI number:') | ||
expect($('.govuk-summary-list__value').eq(0).text()).toMatch('333333333') | ||
expect($('.govuk-summary-list__actions .govuk-link').eq(0).text()).toMatch('Change') | ||
|
||
expect($('.govuk-summary-list__key').eq(1).text()).toMatch('Address:') | ||
expect($('.govuk-summary-list__value').eq(1).text()).toMatch('Long dusty road, Middle-of-knowhere, In the countryside, CC33 3CC') | ||
expect($('.govuk-summary-list__actions .govuk-link').eq(1).text()).toMatch('Change') | ||
|
||
expect($('.govuk-summary-list__key').eq(2).text()).toMatch('Email address:') | ||
expect($('.govuk-summary-list__value').eq(2).text()).toMatch('[email protected]') | ||
expect($('.govuk-summary-list__actions .govuk-link').eq(2).text()).toMatch('Change') | ||
expectPhaseBanner.ok($) | ||
}) | ||
}) | ||
|