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
Switch `users/self_registration_spec` to cuprite
Aaron Contrerasd7b51773c8f7
diff --git a/spec/features/users/self_registration_spec.rb b/spec/features/users/self_registration_spec.rbindex 7a7fd759467..f2ecf690ed4 100644--- a/spec/features/users/self_registration_spec.rb+++ b/spec/features/users/self_registration_spec.rb@@ -28,7 +28,7 @@require 'spec_helper'-RSpec.describe 'user self registration', js: true do+RSpec.describe 'user self registration', js: true, with_cuprite: true dolet(:admin_password) { 'Test123Test123' }let(:admin) { create(:admin, password: admin_password, password_confirmation: admin_password) }let(:home_page) { Pages::Home.new }@@ -55,20 +55,18 @@ RSpec.describe 'user self registration', js: true do.to have_content('Your account was created and is now pending administrator approval.')end- it 'allows self registration and activation by an admin' do+ it 'allows self registration and activation by an admin', signout_via_visit: true dohome_page.visit!# registration as an anonymous userwithin '.op-app-header' doclick_link 'Sign in'- SeleniumHubWaiter.waitclick_link 'Create a new account'end# deliberately inserting a wrong password confirmationwithin '.registration-modal' do- SeleniumHubWaiter.waitfill_in 'Username', with: 'heidi'fill_in 'First name', with: 'Heidi'fill_in 'Last name', with: 'Switzerland'@@ -86,7 +84,6 @@ RSpec.describe 'user self registration', js: true dowithin '.registration-modal' do# Cannot use 'Password' here as the error message on 'Confirmation' is part of the label# and contains the string 'Password' as well- SeleniumHubWaiter.waitfill_in 'user_password', with: 'test123=321test'fill_in 'Confirmation', with: 'test123=321test'