Skip to content

Commit

Permalink
add data cy for users fliters
Browse files Browse the repository at this point in the history
  • Loading branch information
Maciej Szewczyk committed May 16, 2024
1 parent 4583b4b commit 359251e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions frontend/src/components/core/SearchTextField.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ export function SearchTextField({
$borderRadius={borderRadius}
variant="outlined"
placeholder={placeholder}
data-cy="search-text-field"
inputProps={{ maxLength: 200 }}
// https://github.com/mui-org/material-ui/issues/12805
// eslint-disable-next-line react/jsx-no-duplicate-props
Expand Down
3 changes: 3 additions & 0 deletions frontend/src/components/core/UsersListFilters.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ export function UsersListFilters({
onChange={(e) => handleFilterChange('partner', e.target.value)}
label={t('Partner')}
value={filter.partner}
data-cy="partner-filter"
>
{choices.userPartnerChoices.map((item) => (
<MenuItem key={item.value} value={item.value}>
Expand All @@ -81,6 +82,7 @@ export function UsersListFilters({
onChange={(e) => handleFilterChange('roles', e.target.value)}
label={t('Role')}
value={filter.roles}
dataCy="role-filter"
>
{choices.userRolesChoices.map((item) => (
<MenuItem key={item.value} value={item.value}>
Expand All @@ -94,6 +96,7 @@ export function UsersListFilters({
onChange={(e) => handleFilterChange('status', e.target.value)}
label={t('Status')}
value={filter.status}
dataCy="status-filter"
>
{choices.userStatusChoices.map((item) => (
<MenuItem key={item.value} value={item.value}>
Expand Down

0 comments on commit 359251e

Please sign in to comment.