Skip to content

Commit

Permalink
chore: update test
Browse files Browse the repository at this point in the history
  • Loading branch information
thisyahlen-deriv committed Apr 30, 2024
1 parent 410dc06 commit 163a2d5
Showing 1 changed file with 0 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,16 +52,11 @@ describe('<PoiConfirmWithExampleFormContainer/>', () => {
getChangeableFields: jest.fn(() => ['first_name', 'last_name', 'date_of_birth']),
onFormConfirm: jest.fn(),
};
const clarification_message = /To avoid delays, enter your/;
const checkbox_label =
'I confirm that the name and date of birth above match my chosen identity document (see below)';

it('should render PersonalDetailsForm with image and checkbox', async () => {
render(<PoiConfirmWithExampleFormContainer {...mock_props} />);

expect(await screen.findByText('PoiNameDobExampleImage')).toBeInTheDocument();
expect(screen.getByText(clarification_message)).toBeInTheDocument();
expect(screen.getByText(checkbox_label)).toBeInTheDocument();
const checkbox_el: HTMLInputElement = screen.getByRole('checkbox');
expect(checkbox_el.checked).toBeFalsy();

Expand Down

0 comments on commit 163a2d5

Please sign in to comment.