-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9c0836e
commit 0736a5b
Showing
30 changed files
with
71 additions
and
40 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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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,29 @@ | ||
/* eslint-disable prefer-regex-literals */ | ||
|
||
import { describe, expect, it } from 'vitest' | ||
import { setupNunjucks } from '../../../src/serverSetup/nunjucks.js' | ||
import { runGenericPageTests } from '../generic-page.js' | ||
import config from '../../../config/index.js' | ||
import { stripWhitespace } from '../../utils/stripWhiteSpace.js' | ||
import { mockDataSubjects } from '../data.js' | ||
|
||
const nunjucks = setupNunjucks({ dataSubjects: mockDataSubjects }) | ||
|
||
describe('Check confirmation View', () => { | ||
const params = { | ||
values: { | ||
dataset: 'mockDataset' | ||
} | ||
} | ||
const html = stripWhitespace(nunjucks.render('submit/confirmation.html', params)) | ||
|
||
runGenericPageTests(html, { | ||
pageTitle: 'A Mock dataset submitted - Submit planning and housing data for England', | ||
serviceName: config.serviceName | ||
}) | ||
|
||
it('should render the gov uk panel', () => { | ||
const regex = new RegExp('<h1 class="govuk-panel__title".*A Mock dataset submitted.*</h1>', 'g') | ||
expect(html).toMatch(regex) | ||
}) | ||
}) |
This file was deleted.
Oops, something went wrong.
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,29 @@ | ||
/* eslint-disable prefer-regex-literals */ | ||
|
||
import { describe, expect, it } from 'vitest' | ||
import { setupNunjucks } from '../../../src/serverSetup/nunjucks.js' | ||
import { runGenericPageTests } from '../generic-page.js' | ||
import config from '../../../config/index.js' | ||
import { stripWhitespace } from '../../utils/stripWhiteSpace.js' | ||
import { mockDataSubjects } from '../data.js' | ||
|
||
const nunjucks = setupNunjucks({ dataSubjects: mockDataSubjects }) | ||
|
||
describe('Submit confirmation View', () => { | ||
const params = { | ||
values: { | ||
dataset: 'mockDataset' | ||
} | ||
} | ||
const html = stripWhitespace(nunjucks.render('submit/confirmation.html', params)) | ||
|
||
runGenericPageTests(html, { | ||
pageTitle: 'A Mock dataset submitted - Submit planning and housing data for England', | ||
serviceName: config.serviceName | ||
}) | ||
|
||
it('should render the gov uk panel', () => { | ||
const regex = new RegExp('<h1 class="govuk-panel__title".*A Mock dataset submitted.*</h1>', 'g') | ||
expect(html).toMatch(regex) | ||
}) | ||
}) |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.