I see the getting started docs mentioning that <te...
# support
w
I see the getting started docs mentioning that testing_support should be part of the core install, but the path does not exist in my install. Is there something I need to do to get them to install? I am simply trying to get capybara to be able to handle logging in to the demo site, and I guess the missing helpers might be the issue- nothing I've tried (many variations on
fill_in('spree_user_email', with: '<mailto:admin@example.com|admin@example.com>')
) has been able to enter text in the user/pass fields. Thanks in advance
Out of curiosity, I created a second install of Solidus, just in case the first one had encountered an error I missed. Running all the included spec tests gave me: Finished in 1 minute 21.94 seconds (files took 2.32 seconds to load) 325 examples, 78 failures, 13 pending
These should all pass, shouldn't they?
k
Hello Will, I’d like to assist you here to understand what happens.
For the first problem, testing_support files comes form the gem: https://github.com/solidusio/solidus/tree/main/core/lib/spree/testing_support You can require the files you need in your spec helpers
If you installed the starter_fronted, you should have a
spec/solidus_starter_frontend_spec_helper.rb
in your application which you can take inspiration from
For the failures, I suspect it might be related to a recent bug in capybara/selenium-webdriver. I fixed this locally by locking
selenium-webdriver
gem to
4.9.0
BTW, if you can paste the specific error you are having, that would be useful to debug.
w
Hi Kenny, thank you for stepping in to help- I do see the spec helper in my install, and many of the rspec tests do work, even after switching to selenium 4.9.0 as you mentioned. I am going to spend a little more time learning about how Solidus works, and hopefully many of the snags I am hitting will go away. If I am still stuck later, I'll come back to this thread.
k
Nice, we’ll try to help as possible here, let us know how it goes