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
attempt to fix flickering spec
ulferts7a4826e6c9a5
diff --git a/spec/features/users/create_spec.rb b/spec/features/users/create_spec.rbindex dbd610ee6b3..939804095a6 100644--- a/spec/features/users/create_spec.rb+++ b/spec/features/users/create_spec.rb@@ -31,20 +31,19 @@ require 'spec_helper'describe 'create users', type: :feature, selenium: true dousing_shared_fixtures :adminlet(:current_user) { admin }- let(:auth_source) { FactoryBot.build :dummy_auth_source }+ let!(:auth_source) { FactoryBot.create :dummy_auth_source }let(:new_user_page) { Pages::NewUser.new }+ let(:mail) do+ ActionMailer::Base.deliveries.last+ end+ let(:mail_body) { mail.body.parts.first.body.to_s }+ let(:token) { mail_body.scan(/token=(.*)$/).first.first.strip }before do- login_as current_user+ allow(User).to receive(:current).and_return adminendshared_examples_for 'successful user creation' do- let(:mail) do- ActionMailer::Base.deliveries.last- end- let(:mail_body) { mail.body.parts.first.body.to_s }- let(:token) { mail_body.scan(/token=(.*)$/).first.first }-it 'creates the user' doexpect(page).to have_selector('.flash', text: 'Successful creation.')@@ -100,7 +99,6 @@ describe 'create users', type: :feature, selenium: true docontext 'with external authentication', js: true dobefore do- auth_source.save!new_user_page.visit!new_user_page.fill_in! first_name: 'bobfirst',