Skip to content

Commit

Permalink
10409: WIP Add data-testid to all select searchs
Browse files Browse the repository at this point in the history
  • Loading branch information
Zachary Rogers committed Sep 24, 2024
1 parent afa89cc commit f328a4e
Show file tree
Hide file tree
Showing 9 changed files with 16 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ export const CaseAssociationRequest = connect(
className={classNames(
validationErrors.documentType && 'usa-select--error',
)}
data-testid="document-type"
data-testid="case-association-document-type-search"
id="document-type"
isClearable={true}
name="documentType"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ export const CourtIssuedDocketEntry = connect(
</label>
<SelectSearch
aria-labelledby="document-type-label"
data-testid="primary-document"
data-testid="court-issued-document-type-search"
id="document-type"
isClearable={true}
name="eventCode"
Expand Down
4 changes: 4 additions & 0 deletions web-client/src/views/CustomCaseReport/CustomCaseReport.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,7 @@ export const CustomCaseReport = connect(
</label>
<SelectSearch
aria-labelledby="case-status-label"
data-testid="case-status-search"
id="case-status"
name="caseStatus"
options={customCaseReportHelper.caseStatuses}
Expand Down Expand Up @@ -278,6 +279,7 @@ export const CustomCaseReport = connect(
</label>
<SelectSearch
aria-labelledby="case-type-label"
data-testid="case-type-search"
id="case-type"
name="eventCode"
options={customCaseReportHelper.caseTypes}
Expand Down Expand Up @@ -310,6 +312,7 @@ export const CustomCaseReport = connect(
</label>
<SelectSearch
aria-labelledby="judges-label"
data-testid="judges-search"
id="judges"
name="judges"
options={customCaseReportHelper.judges}
Expand Down Expand Up @@ -338,6 +341,7 @@ export const CustomCaseReport = connect(
</label>
<SelectSearch
aria-labelledby="requested-place-of-trial-label"
data-testid="trial-location-search"
id="trial-location"
name="requestedPlaceOfTrial"
options={customCaseReportHelper.trialCitiesByState}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ export const EditDocketEntryMetaFormCourtIssued = connect(
{addCourtIssuedDocketEntryHelper.showDocumentTypeDropdown && (
<SelectSearch
aria-labelledby="document-type-label"
data-testid="add-court-issued-document-type-search"
id="document-type"
isClearable={true}
name="eventCode"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ export const EditDocketEntryMetaFormDocument = connect(

<SelectSearch
aria-describedby="document-type-label"
data-testid="edit-docket-entry-meta-document-type-search"
id="document-type"
isClearable={true}
name="eventCode"
Expand Down Expand Up @@ -129,6 +130,7 @@ export const EditDocketEntryMetaFormDocument = connect(
</label>
<SelectSearch
aria-label="secondary-document-type-label"
data-testid="edit-docket-entry-meta-secondary-document-type-search"
id="secondary-document-type"
isClearable={true}
name="secondaryDocument.eventCode"
Expand Down
2 changes: 2 additions & 0 deletions web-client/src/views/EditDocketEntry/PrimaryDocumentForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ export const PrimaryDocumentForm = connect(

<SelectSearch
aria-describedby="document-type-label"
data-testid="primary-document-type-search"
id="document-type"
isClearable={true}
name="eventCode"
Expand Down Expand Up @@ -131,6 +132,7 @@ export const PrimaryDocumentForm = connect(
</label>
<SelectSearch
aria-describedby="secondary-document-type-label"
data-testid="secondary-document-type-search"
id="secondary-document-type"
isClearable={true}
name="secondaryDocument.eventCode"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export const CompleteDocumentTypeSection = connect(

<SelectSearch
aria-labelledby="document-type-label"
data-testid="document-type"
data-testid="complete-doc-document-type-search"
id="document-type"
isClearable={true}
name="eventCode"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,7 @@ export const SessionAssignmentsForm = connect(

<SelectSearch
aria-label="irs-calendar-administrator-info-search-label"
data-testid="irs-calendar-administrator-info-search"
id="irs-calendar-administrator-info-search"
isClearable={true}
isMulti={false}
Expand Down
3 changes: 3 additions & 0 deletions web-client/src/views/TrialSessions/TrialSessions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -291,6 +291,7 @@ const TrialSessionFilters = connect(
</label>
<SelectSearch
aria-labelledby="session-type-filter-label"
data-testid="trial-session-type-filter-search"
id="session-type-filter"
name="sessionType"
options={trialSessionsHelper.sessionTypeOptions}
Expand Down Expand Up @@ -341,6 +342,7 @@ const TrialSessionFilters = connect(
</label>
<SelectSearch
aria-labelledby="location-filter-label"
data-testid="trial-session-location-filter-search"
id="location-filter"
name="location"
options={trialSessionsHelper.trialCitiesByState}
Expand Down Expand Up @@ -391,6 +393,7 @@ const TrialSessionFilters = connect(
</label>
<SelectSearch
aria-labelledby="judges-filter-label"
data-testid="trial-session-judge-filter-search"
id="judges"
name="judges"
options={trialSessionsHelper.trialSessionJudgeOptions}
Expand Down

0 comments on commit f328a4e

Please sign in to comment.