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
refactor: Use better English
Christophe Bliarde91c6fcb69d3
diff --git a/spec/features/users/edit_users_spec.rb b/spec/features/users/edit_users_spec.rbindex 5a62b922e07..d5acb925772 100644--- a/spec/features/users/edit_users_spec.rb+++ b/spec/features/users/edit_users_spec.rb@@ -84,7 +84,7 @@ RSpec.describe 'edit users', :js, :with_cuprite doendend- def have_tab_visible(label)+ def have_visible_tab(label)have_selector('.op-tab-row--link', text: label.upcase)end@@ -93,7 +93,7 @@ RSpec.describe 'edit users', :js, :with_cuprite doanother_admin = create(:admin)visit edit_user_path(another_admin)- expect(page).to have_tab_visible('GENERAL')+ expect(page).to have_visible_tab('GENERAL')endend@@ -104,7 +104,7 @@ RSpec.describe 'edit users', :js, :with_cuprite doit 'can too edit the user' dovisit edit_user_path(user)- expect(page).to have_tab_visible('GENERAL')+ expect(page).to have_visible_tab('GENERAL')expect(page).not_to have_selector('.admin-overview-menu-item', text: 'Overview')expect(page).not_to have_selector('.users-and-permissions-menu-item', text: 'Users and permissions')@@ -146,8 +146,8 @@ RSpec.describe 'edit users', :js, :with_cuprite doit 'can not edit attributes of an admin user' dovisit edit_user_path(admin)- expect(page).to have_tab_visible('PROJECTS')- expect(page).not_to have_tab_visible('GENERAL')+ expect(page).to have_visible_tab('PROJECTS')+ expect(page).not_to have_visible_tab('GENERAL')endendend