Skip to content

System tests not runnable under docker #1347

Description

@fbacall
$ docker compose run test bundle exec rails test test/system
.
.
[SNIP]
.
.
Error:
EventsCalendarSystemTest#test_calendar_tab_loads_and_renders_events_with_javascript:
Selenium::WebDriver::Error::WebDriverError: unable to connect to /root/.cache/selenium/chromedriver/linux64/151.0.7922.47/chromedriver 127.0.0.1:9515: Errno::ECONNREFUSED: Failed to open TCP connection to 127.0.0.1:9515 (Connection refused - connect(2) for "127.0.0.1" port 9515)
    test/system/events_calendar_system_test.rb:18:in `block (2 levels) in <class:EventsCalendarSystemTest>'
    test/test_helper.rb:185:in `block (2 levels) in freeze_time'
    test/test_helper.rb:184:in `block in freeze_time'
    test/test_helper.rb:183:in `freeze_time'
    test/system/events_calendar_system_test.rb:5:in `block in <class:EventsCalendarSystemTest>'

Possibly need to run a selenium container and configure capybara to use it, as suggested in the following post:
https://stackoverflow.com/a/48634299

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions