Fix death_report_spec, facility_spec and user_spec #5573
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
WHAT
🤖 Generated by Copilot at 70a3ead
The pull request improves the test code for death report and user CRUD operations, fixes bugs and adds features to some common components, and adds name attributes to date inputs. It also sorts imports alphabetically in several files for consistency and adds
data-cy
attributes for testing.Proposed Changes
@coronasafe/care-fe-code-reviewers @coronasafe/code-reviewers
Merge Checklist
HOW
🤖 Generated by Copilot at 70a3ead
cypress/e2e/death_report_spec/death_report.cy.ts
,src/Components/Common/DateInputV2.tsx
,src/Components/Form/FormFields/DateFormField.tsx
, andsrc/Components/Patient/ManagePatients.tsx
(link, link, link, link)cypress/e2e/death_report_spec/death_report.cy.ts
(link)force
option to clear and type date inputs incypress/e2e/death_report_spec/death_report.cy.ts
(link, link)name
prop toProps
interface and pass it toinput
element insrc/Components/Common/DateInputV2.tsx
(link, link, link)name
prop toDateInputV2
component insrc/Components/Form/FormFields/DateFormField.tsx
(link)name
attribute for phone number inputs insrc/Components/Common/HelperInputFields.tsx
(link, link)data-cy
attribute to patient link element insrc/Components/Patient/ManagePatients.tsx
(link)cypress/e2e/facility_spec/facility.cy.ts
to usename
attribute instead ofid
for phone number input incypress/e2e/death_report_spec/death_report.cy.ts
(link)cypress/e2e/users_spec/user_crud.cy.ts
(link, link, link, link)