Le multiselect `select2` n'est pas accessible (interfaces agent)
Opened this issue · 0 comments
francois-ferrandis commented
ℹ️ Contexte
La librairie JS que nous utilisons pour avoir des select avec filtre n'est pas accessible
❓ Définition du problème
L'usage de cette librairie est un frein à l'accessibilité côté agent
💡 Solution envisagée
Des pistes :
- https://www.webaxe.org/accessible-custom-select-dropdowns/
- https://github.com/alphagov/accessible-autocomplete-multiselect
🧪 Scénarios de test
it "admin organisation users path is accessible" do
territory = create(:territory, departement_number: "75")
organisation = create(:organisation, territory: territory)
create_list(:user, 3, organisations: [organisation])
agent = create(:agent, email: "totoagent@example.com", basic_role_in_organisations: [organisation])
login_as(agent, scope: :agent)
path = admin_organisation_users_path(organisation)
expect_page_to_be_axe_clean(path)
end
it "RDV list is accessible" do
territory = create(:territory, departement_number: "75")
organisation = create(:organisation, territory: territory)
agent = create(:agent, email: "totoagent@example.com", basic_role_in_organisations: [organisation])
login_as(agent, scope: :agent)
create_list(:rdv, 3, agents: [agent])
expect_page_to_be_axe_clean(admin_organisation_rdvs_path(organisation))
end