Skip to content

Commit

Permalink
tests linter
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreyNenashev committed Oct 24, 2023
1 parent 6de4d4e commit a92b284
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,18 @@ const AppSelect: React.FC<AppSelectProps> = React.forwardRef(
<Grid
sx={props.containerSx || { mt: label ? 2 : 0, width: fullWidth ? '100%' : 'auto' }}
>
{label && <S.SelectLabel htmlFor={id}>{label}</S.SelectLabel>}
{label && (
<S.SelectLabel id={`${id}-label`} htmlFor={id}>
{label}
</S.SelectLabel>
)}
<S.AppSelect
{...props}
$size={size}
$isLabeled={!!label}
variant='outlined'
fullWidth={fullWidth}
labelId={`${id}-label`}
IconComponent={DropdownIcon}
notched
ref={ref}
Expand Down
3 changes: 2 additions & 1 deletion tests/ui/pages/catalog/catalog.page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ import TextBox from '../../elements/text-box';
import BasePage from '../base-page';

const SELECTORS = {
filterWithSelect: filterName => `#filter-${filterName.toLowerCase()}:has-text('${filterName}') >> ..`,
filterWithSelect: filterName =>
`#filter-${filterName.toLowerCase()}-label:has-text('${filterName}') >> ..`,
filterWithInput: filterName => `label:text-is("${filterName}") >> ..`,
searchBar: `[placeholder="Search"]`,
cleanSearchBarButton: `[data-qa="search_string"] >> .. >> button path[fill-rule="evenodd"]`,
Expand Down

0 comments on commit a92b284

Please sign in to comment.