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

[#51021] Test for basic accessibility for the new and edit (primer) file storage pages

Kabiru Mwenja6cd661147493
diff --git a/modules/storages/spec/features/admin_storages_spec.rb b/modules/storages/spec/features/admin_storages_spec.rb
index 4fd4776462e..ec3739f2a91 100644
--- a/modules/storages/spec/features/admin_storages_spec.rb
+++ b/modules/storages/spec/features/admin_storages_spec.rb
@@ -58,6 +58,8 @@ RSpec.describe 'Admin storages',
it 'renders a list of storages' do
visit admin_settings_storages_path
+ expect(page).to be_axe_clean.within '#content'
+
expect(page).to have_test_selector('storage-name', text: complete_storage.name)
expect(page).to have_test_selector('storage-name', text: incomplete_storage.name)
expect(page).to have_css("button[aria-label='Add new storage']", text: 'Storage')
@@ -102,6 +104,8 @@ RSpec.describe 'Admin storages',
it 'renders a blank slate' do
visit admin_settings_storages_path
+ expect(page).to be_axe_clean.within '#content'
+
# Show Add storage button
expect(page).to have_css("button[aria-label='Add new storage']", text: 'Storage')