From 4f80a304e0768a0160153094a96c8076a2ef5a54 Mon Sep 17 00:00:00 2001 From: Dante Soares Date: Thu, 17 Oct 2024 09:49:03 -0500 Subject: [PATCH] Attempt to fix popup console test --- .github/workflows/tests.yml | 2 +- app/models/user.rb | 2 +- spec/features/admin/users_spec.rb | 1 + spec/features/remove_accounts_path_prefix_spec.rb | 2 +- 4 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 25525e2aa..8e2dc73f0 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -39,4 +39,4 @@ jobs: run: | bundle install --jobs 4 --retry 3 bundle exec rake parallel:create parallel:load_schema parallel:seed --trace - bundle exec rspec ./spec + WORKERS=4 bundle exec rake parallel:spec diff --git a/app/models/user.rb b/app/models/user.rb index d83b6baa3..c703083d5 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -270,7 +270,7 @@ def step_3_complete? # A User can also be created by a one of the consumer applications as a stand-in # for a person who has not yet (or may never) created an account. In this case # the User model will be in the "unclaimed" state. When the User does signup, they - # can claim the account and recieve all the permissions and tasks + # can claim the account and receive all the permissions and tasks # that were assigned to it in the interm. # # Once a User model is cleared for use, the state is set to "activated" diff --git a/spec/features/admin/users_spec.rb b/spec/features/admin/users_spec.rb index 6bec4c5c4..f69ee8196 100644 --- a/spec/features/admin/users_spec.rb +++ b/spec/features/admin/users_spec.rb @@ -35,6 +35,7 @@ context 'popup console' do it 'searches users and does not explode' do visit '/' + Capybara.current_session.current_window.resize_to 1024, 1024 click_link 'Popup Console' wait_for_ajax(10) # for some reason this is slow click_link 'Users' diff --git a/spec/features/remove_accounts_path_prefix_spec.rb b/spec/features/remove_accounts_path_prefix_spec.rb index 197e507f5..873f69887 100644 --- a/spec/features/remove_accounts_path_prefix_spec.rb +++ b/spec/features/remove_accounts_path_prefix_spec.rb @@ -5,7 +5,7 @@ let(:request) { Rack::MockRequest.new(app) } context "Requests should get routed to the appropriate controllers" do - it "should recieve profile info in show page" do + it "should receive profile info in show page" do expect_any_instance_of(Api::V1::UsersController).to receive(:show) request.get("/accounts/api/user") end