Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple options with the same aria-label #4680

Open
francescovenica opened this issue Apr 11, 2024 · 0 comments
Open

Multiple options with the same aria-label #4680

francescovenica opened this issue Apr 11, 2024 · 0 comments

Comments

@francescovenica
Copy link

Describe the bug

When using range and 2 month the left month contains a few day of the next month (1st,2nd,3rd, and other based on the month), this create issues when testing (and probably with screen reader) as doing something like:

await page.getByLabel(`Choose ${todayPlusMonthFormatted}`, { exact: true }).click();

will fail because it find 2 options.

Here a codesendbox

Expected behavior
The hidden option shouldn't have the aria-label or should be disabled

Screenshots

Screenshot 2024-04-11 at 08 19 40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant