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
chore[Op-51021]: Use `.to have_button` in place of `.to have_selector :button`
Kabiru Mwenjac6a76e2f58cb
diff --git a/modules/storages/spec/features/admin_storages_spec.rb b/modules/storages/spec/features/admin_storages_spec.rbindex 88df17ae136..53b8431c313 100644--- a/modules/storages/spec/features/admin_storages_spec.rb+++ b/modules/storages/spec/features/admin_storages_spec.rb@@ -62,7 +62,7 @@ RSpec.describe 'Admin storages',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_selector :button, 'Storage', aria: { label: 'Add new storage' }+ expect(page).to have_button 'Storage', aria: { label: 'Add new storage' }within "li#storages_nextcloud_storage_#{complete_storage.id}" doexpect(page).not_to have_test_selector('label-incomplete')@@ -107,7 +107,7 @@ RSpec.describe 'Admin storages',expect(page).to be_axe_clean.within '#content'# Show Add storage button- expect(page).to have_selector :button, 'Storage', aria: { label: 'Add new storage' }+ expect(page).to have_button 'Storage', aria: { label: 'Add new storage' }# Show empty storages listexpect(page).to have_title('File storages')