-
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.
- Loading branch information
1 parent
fb1dd92
commit ada0eb9
Showing
7 changed files
with
156 additions
and
22 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
45 changes: 45 additions & 0 deletions
45
packages/applicant/src/pages/mandatory-questions/start.page.test.tsx
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,45 @@ | ||
import '@testing-library/jest-dom'; | ||
import { render, screen } from '@testing-library/react'; | ||
import MandatoryQuestionsBeforeYouStart, { | ||
MandatoryQuestionsProps, | ||
} from './start.page'; | ||
import { getProps } from 'gap-web-ui'; | ||
|
||
function getDefaultProps(): MandatoryQuestionsProps { | ||
return { | ||
schemeId: '1', | ||
}; | ||
} | ||
|
||
describe('Mandatory Questions Start', () => { | ||
test('should render page', () => { | ||
render(<MandatoryQuestionsBeforeYouStart {...getProps(getDefaultProps)} />); | ||
|
||
screen.getByRole('heading', { | ||
name: 'Before you start', | ||
}); | ||
screen.getByRole('paragraph', { | ||
name: 'Before you start, we’d like to ask you a few questions.', | ||
}); | ||
screen.getByRole('paragraph', { | ||
name: | ||
'These questions will be used by the grant’s administrators to prevent fraud ' + | ||
'and help Find a grant understand the demand for this grant.', | ||
}); | ||
screen.getByRole('paragraph', { | ||
name: 'You will need:', | ||
}); | ||
screen.getByRole('listitem', { | ||
name: 'your organisation’s address', | ||
}); | ||
screen.getByRole('listitem', { | ||
name: 'your Companies House number (if you have one)', | ||
}); | ||
screen.getByRole('listitem', { | ||
name: 'your Charity Commission number (if you have one)', | ||
}); | ||
screen.getByRole('button', { | ||
name: 'Continue', | ||
}); | ||
}); | ||
}); |
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