Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions app/src/pages/patientSearchPage/PatientSearchPage.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -348,6 +348,18 @@ describe('PatientSearchPage', () => {
});
},
);

it('a defined width class is applied to the NHS number input field', async () => {

const definedWidthClass = 'nhsuk-input--width-10';

renderPatientSearchPage();

const input = screen.getByTestId('nhs-number-input');
expect(input).toHaveClass(definedWidthClass);

});

});
});

Expand Down
1 change: 1 addition & 0 deletions app/src/pages/patientSearchPage/PatientSearchPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ function PatientSearchPage() {
<Input
id="nhs-number-input"
data-testid="nhs-number-input"
className="nhsuk-input--width-10"
label="Enter NHS number"
hint="A 10-digit number, for example, 485 777 3456"
type="text"
Expand Down
Loading