Code Monkey home page Code Monkey logo

Comments (4)

srabuini avatar srabuini commented on June 16, 2024 1

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.

muhme avatar muhme commented on June 16, 2024

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.

hahmed avatar hahmed commented on June 16, 2024

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.

muhme avatar muhme commented on June 16, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.