fix: label related accessibility issues with FavoriteEntity

Signed-off-by: Mikko Korhonen <mikko.korhonen@op.fi>
This commit is contained in:
Mikko Korhonen
2024-08-15 16:45:37 +03:00
parent 4a97497e0e
commit d001a42080
6 changed files with 132 additions and 10 deletions
@@ -119,7 +119,7 @@ describe('CardHeader', () => {
</TestApiProvider>,
);
const favorite = getByRole('button', { name: 'favorite' });
const favorite = getByRole('button', { name: 'Add to favorites' });
await fireEvent.click(favorite);