Comments (4)
Hi @hahmed, it might be similar, but not exactly the same. It changed when the way to find the driver_path
changed. Instead of changing again that process, it could be simpler as avoiding preload when the driver is explicitly :remote
.
@muhme I'd fixit with
@browser.preload unless @options[:browser] == :remote
from rails.
Hi @srabuini thanks for your explanation in detail, I ran into the same issue with upgrading to Rails 7.1.3 / ruby 3.2.3 and was able to continue working with test:system by the hack commenting out line 19 @browser.preload 👍
from rails.
This issue sounds similar to what was reported in #47706, could you try that and see if it resolves your issue? I could be wrong, but I don't think you need to patch rails, you should be able to update the args you are sending to driven_by
.
from rails.
@hahmed thanks for investigating, I changed using: :chrome
in using: :headless_chrome
, but still getting
- no chrome binary at /root/.cache/selenium/chrome/linux64/121.0.6167.85/chrome
My original ApplicationSystemTestCase configuration is:
driven_by :selenium, using: :chrome, screen_size: [1200, 1800], options: { browser: :remote, url: "http://chrome:4444" }
def setup
Capybara.app_host = "http://rails:3100"
Capybara.default_max_wait_time = 10 # default 2 seconds are not long enough for translations
Capybara.server_port = 3100 # puma listening port 3100 on TEST
Capybara.server_host = "0.0.0.0"
Capybara.default_driver = :selenium # not using default :rack_test w/o JavaScript
super
end
Instead, if I comment out line 19 @browser.preload
in file
- /usr/local/bundle/gems/actionpack-7.1.3/lib/action_dispatch/system_testing/driver.rb
everything is working.
I am not sure, was that the test or what should I try to change?
from rails.
Related Issues (20)
- ActiveStorage::FileNotFoundError (ActiveStorage::FileNotFoundError) HOT 1
- Segmentation Fault on Docker and ruby 3.3.0 HOT 4
- Credentials usage doesn't agree with the code HOT 1
- Add `jsonb` on sqlite connection adapter table definition HOT 1
- How to use Azure Managed Identity for authentication and authorization for Ruby On Rails Active Storage?
- `ActionView::Template::Error`: Missing Active Model partial when rendered from Controller declared in module HOT 2
- O(N^2) operation in `CollectionAssociation#replace_common_records_in_memory` and **another** O(N^2) operation in `ActiveStorage::Attached::Many#attach`
- belongs_to association doesn't work with composite `primary_key` option HOT 4
- Video analyzer does not detect rotation of HDR videos
- eager_load, includes load wrong data using composite primary keys and query_constraints HOT 2
- Comparing `Time` object with an integer doesn't throw an error HOT 2
- Running "bundle exec rake rdoc" more than once does not work HOT 2
- `ReferenceError: File is not defined` HOT 1
- Incorrectly raising `ReadonlyAttributeError` when autosaving `has_one` association with readonly foreign key HOT 4
- Allow comments on `railsrc`. HOT 2
- Make it possible to skip CSS when generating APIs, or bring the possibility to skip entire `railsrc` or template files. HOT 1
- Command rails server fails if all db configs have database_tasks: false HOT 5
- Unexpected controller prefix path de-duplication in view partial lookup paths HOT 2
- `ActiveStorage::Analyzer::VideoAnalyzerTest#test_analyzing_a_rotated_HDR_video` fails at Rails Nightly HOT 9
- Upgrading Rails 7.0.8 to 7.1.3 broke ActionText attachments in development
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rails.