OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
a11y[Op#52605]: Define aria live POLITENESS_SETTING for nudge modal
Kabiru Mwenja41fc9414fea5
diff --git a/modules/storages/app/components/storages/admin/oauth_access_grant_nudge_modal_component.html.erb b/modules/storages/app/components/storages/admin/oauth_access_grant_nudge_modal_component.html.erbindex b2b74757a65..97c2095a36a 100644--- a/modules/storages/app/components/storages/admin/oauth_access_grant_nudge_modal_component.html.erb+++ b/modules/storages/app/components/storages/admin/oauth_access_grant_nudge_modal_component.html.erb@@ -17,7 +17,12 @@})- dialog.with_body(id: dialog_body_id, role: :status, aria: { live: :polite }) do+ dialog.with_body(+ id: dialog_body_id,+ role: :status,+ aria: { live: (authorized ? :assertive : :polite) },+ test_selector: 'oauth-access-grant-nudge-modal-body'+ ) doconcat(render(Primer::Beta::Text.new(diff --git a/modules/storages/spec/components/storages/admin/oauth_access_grant_nudge_modal_component_spec.rb b/modules/storages/spec/components/storages/admin/oauth_access_grant_nudge_modal_component_spec.rbindex 587786a7a35..128f6dc2877 100644--- a/modules/storages/spec/components/storages/admin/oauth_access_grant_nudge_modal_component_spec.rb+++ b/modules/storages/spec/components/storages/admin/oauth_access_grant_nudge_modal_component_spec.rb@@ -41,7 +41,12 @@ RSpec.describe Storages::Admin::OAuthAccessGrantNudgeModalComponent, type: :compit 'renders the nudge modal' doexpect(page).to have_text('One more step...')- expect(page).to have_text("To get access to the project folder you need to login to #{project_storage.storage.name}.")+ expect(page).to have_test_selector(+ 'oauth-access-grant-nudge-modal-body',+ text: "To get access to the project folder you need to login to #{project_storage.storage.name}.",+ aria: { live: :polite },+ role: :status+ )expect(page).to have_button('I will do it later')expect(page).to have_button('Login')@@ -55,7 +60,12 @@ RSpec.describe Storages::Admin::OAuthAccessGrantNudgeModalComponent, type: :compit 'renders a success modal' doexpect(page).to have_text('Access granted')- expect(page).to have_text("You are now ready to use #{project_storage.storage.name}")+ expect(page).to have_test_selector(+ 'oauth-access-grant-nudge-modal-body',+ text: "You are now ready to use #{project_storage.storage.name}",+ aria: { live: :assertive },+ role: :status+ )expect(page).to have_button('Close')end