-
Notifications
You must be signed in to change notification settings - Fork 467
Closed
Description
@testing-library/domversion: ^8.17.0- Testing Framework and version: jest ^28.1.0
- DOM Environment: In codesandbox
Relevant code or config:
test('getting by implicit "meter" role', () => {
const aValue = 21;
render(<Meter value={aValue} />);
expect(screen.getByRole("meter")).toHaveValue(aValue);
});
function Meter({
value = 0,
min = 0,
max = 0,
low = 3,
high = 90,
label = "meter"
}) {
return (
<meter
aria-label={label}
value={value}
min={min}
max={max}
low={low}
high={high}
/>
);
}What you did:
Tried to fetch by (implicit) meter role
What happened:
Failed to get element
Reproduction:
Problem description:
Should be able to fetch a meter element by implicit role
Suggested solution:
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels