Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreyNenashev committed Oct 19, 2023
1 parent b82ece3 commit 199c660
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,11 @@ const ResultItem: React.FC<ResultItemProps> = ({
) : null;

return (
<S.Container container onClick={() => navigate(detailsLink)}>
<S.Container
data-testid='search-result-item'
container
onClick={() => navigate(detailsLink)}
>
<SearchCol
lg={grid.lg.nm}
md={grid.md.nm}
Expand Down
4 changes: 2 additions & 2 deletions tests/ui/pages/catalog/catalog.page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ const SELECTORS = {
filterList: `[role="listbox"]`,
filterOption: `[role="option"]`,
filterWithInputOption: `[role="presentation"]`,
listItemName: name => `a:has-text('${name}')`,
listItemName: name => `div[data-testid="search-result-item"]:has-text('${name}')`,
tab: name => `[role="tab"]:has-text('${name}')`,
searchButton: `[placeholder="Search"] >> ..`,
noMatchesFound: `text=No matches found`,
resultList: `#results-list`,
listItem: `a[class][href]`,
listItem: `div[data-testid="search-result-item"]`,
};
export default class CatalogPage extends BasePage {
get searchBar() {
Expand Down

0 comments on commit 199c660

Please sign in to comment.