Skip to content

Commit

Permalink
Update aria-label
Browse files Browse the repository at this point in the history
Co-authored-by: Adam Skoufis <[email protected]>
  • Loading branch information
felixhabib and askoufis authored May 22, 2024
1 parent 11583af commit c66638c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cypress/support/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ export const assertSnippetsSearchFieldIsVisible = () =>
cy.findByRole('searchbox', { name: 'Search snippets' }).should('be.visible');

const getSnippets = () =>
cy.findByRole('list', { name: 'Filtered snippets list' }).find('li');
cy.findByRole('list', { name: 'Filtered snippets' }).find('li');

export const selectSnippetByIndex = (index: number) => getSnippets().eq(index);

Expand Down
2 changes: 1 addition & 1 deletion src/Playroom/Snippets/Snippets.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ export default ({ snippets, onHighlight, onClose }: Props) => {
<ul
className={styles.snippetsContainer}
ref={listEl}
aria-label="Filtered snippets list"
aria-label="Filtered snippets"
>
{filteredSnippets.map((snippet, index) => {
const isHighlighted = highlightedIndex === index;
Expand Down

0 comments on commit c66638c

Please sign in to comment.