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

Allow LuxInputSelect to use Capybara "select" method #348

Open
6 tasks
maxkadel opened this issue Sep 19, 2024 · 0 comments
Open
6 tasks

Allow LuxInputSelect to use Capybara "select" method #348

maxkadel opened this issue Sep 19, 2024 · 0 comments

Comments

@maxkadel
Copy link
Contributor

maxkadel commented Sep 19, 2024

What maintenance needs to be done?

Update the LuxInputSelect so that Capybara's "select" method works on it.

Level of urgency

  • High
  • Moderate
  • Low

Why is this maintenance needed?

Right now, when we test drop-downs in Rails applications, we use a custom method to interact with the drop-down. This method behaves unreliably and does not seem to wait for Javascript to render, as Capybara matchers do.

I am not sure what makes it so that Capybara does not recognize the select, but I worry that this also means that people using screen readers and other assistive technology would have a difficult time using the select menus.

Acceptance criteria

  • The visual appearance of the select stays the same
  • You can use the select with a screen reader
  • Capybara's .select method recognizes the element as a select and can choose an option from it

Implementation notes, if any

This ticket blocks pulibrary/approvals#1165

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant