Skip to content

Commit

Permalink
switch method for reading aria label
Browse files Browse the repository at this point in the history
  • Loading branch information
juandjara committed Mar 6, 2024
1 parent a1636ee commit 49c64d7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ describe('FeatureSelectionWidgetUI', () => {

test('invalid geometry is rendered correctly', () => {
const rendered = render(<CommonFeatureSelectionWidgetUI geometry={INVALID_GEOM} />);
expect(rendered.getByAltText('Invalid geometry')).toBeDefined();
expect(rendered.getByRole('button', { name: 'Invalid geometry' })).toBeDefined();
});

test('geometry select event is raised correctly', () => {
Expand Down

0 comments on commit 49c64d7

Please sign in to comment.