Skip to content

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

a11y[Op-51021]: Heading levels should only increase by one (moderate)

Kabiru Mwenjaff6e93d1f25b
diff --git a/modules/storages/app/components/storages/admin/health_status_component.html.erb b/modules/storages/app/components/storages/admin/health_status_component.html.erb
index 319956de938..ffc35a8c3f4 100644
--- a/modules/storages/app/components/storages/admin/health_status_component.html.erb
+++ b/modules/storages/app/components/storages/admin/health_status_component.html.erb
@@ -1,5 +1,5 @@
<%= render(Primer::Box.new) do %>
- <%= render(Primer::Beta::Heading.new(tag: :h4, mb: 2)) { I18n.t('storages.health.title') } %>
+ <%= render(Primer::Beta::Heading.new(tag: :h3, mb: 2, font_weight: :semibold)) { I18n.t('storages.health.title') } %>
<%= render(Primer::Box.new(py: 1)) do %>
<%= render(Primer::Beta::Text.new(test_selector: "storage-health-checked-at")) {
diff --git a/modules/storages/spec/features/admin_storages_spec.rb b/modules/storages/spec/features/admin_storages_spec.rb
index 78e936ef1b8..b0c02de8a23 100644
--- a/modules/storages/spec/features/admin_storages_spec.rb
+++ b/modules/storages/spec/features/admin_storages_spec.rb
@@ -128,6 +128,8 @@ RSpec.describe 'Admin storages',
it 'renders a Nextcloud specific multi-step form', :webmock do
visit admin_settings_storages_path
+ expect(page).to be_axe_clean.within '#content'
+
within('.PageHeader') { click_on("Storage") }
within_test_selector('storages-select-provider-action-menu') { click_on('Nextcloud') }
@@ -284,6 +286,8 @@ RSpec.describe 'Admin storages',
it 'renders a One Drive specific multi-step form', :webmock do
visit admin_settings_storages_path
+ expect(page).to be_axe_clean.within '#content'
+
within('.PageHeader') { click_on("Storage") }
within_test_selector('storages-select-provider-action-menu') { click_on('OneDrive/SharePoint') }
@@ -425,6 +429,8 @@ RSpec.describe 'Admin storages',
it 'renders an edit view', :webmock do
visit edit_admin_settings_storage_path(storage)
+ expect(page).to be_axe_clean.within '#content'
+
expect(page).to have_test_selector('storage-new-page-header--title', text: "Cloud Storage (Nextcloud)")
aggregate_failures 'Storage edit view' do
@@ -575,6 +581,8 @@ RSpec.describe 'Admin storages',
it 'renders an edit view', :webmock do
visit edit_admin_settings_storage_path(storage)
+ expect(page).to be_axe_clean.within '#content'
+
expect(page).to have_test_selector('storage-new-page-header--title', text: 'Test Drive (OneDrive/SharePoint)')
aggregate_failures 'Storage edit view' do