- Clone repo
- run
./bin/setup
- run
yarn build
andyarn build:css
- run
rspec
Rspec hangs after entire suite EVEN THOUGH the tests pass:
NOTICE that if you do ANY of the following FOUR THINGS things, Rspec DOES NOT HANG:
-
Comment out
gem 'debug', platforms: %i[ mri mingw x64_mingw ]
inGemfile
-
in the
spec/system/test_capy_hang_spec.rb
, comment out the firstvisit
line (the one insideCapybara.using_session("client session") do
)
require 'rails_helper'
describe "client app", type: :feature do
describe "when starting the experience", type: :feature do
# TODO: figure out why capy is hanging here
it "can load the home page" do
# THIS CAUSES HANG
Capybara.using_session("client session") do
#visit "/"
end
end
it "loads with a client id" do
visit '/'
end
end
end
- in the
spec/system/test_capy_hang_spec.rb
, comment out the SECONDvisit
line
require 'rails_helper'
describe "client app", type: :feature do
describe "when starting the experience", type: :feature do
# TODO: figure out why capy is hanging here
it "can load the home page" do
# THIS CAUSES HANG
Capybara.using_session("client session") do
visit "/"
end
end
it "loads with a client id" do
#visit '/'
end
end
end
or 4. remove the visit "/"
from outside of the Capybara.using_session("client session") do
block
require 'rails_helper'
describe "client app", type: :feature do
describe "when starting the experience", type: :feature do
# TODO: figure out why capy is hanging here
it "can load the home page" do
# THIS CAUSES HANG
visit "/"
Capybara.using_session("client session") do
end
end
it "loads with a client id" do
#visit '/'
end
end
end