[openstreetmap/openstreetmap-website] bug with selenium while running the tests (Issue #5467)

etiennejourdier notifications at github.com
Sat Jan 4 21:18:32 UTC 2025


### URL

_No response_

### How to reproduce the issue?

Hi,
I am preparing my very first PR, but I can't run the tests requested in [CONTRIBUTING.md](https://github.com/openstreetmap/openstreetmap-website/blob/master/CONTRIBUTING.md)

`bundle exec teaspoon` gives me this error:
```
/home/<username>/.rbenv/versions/3.1.0/lib/ruby/gems/3.1.0/gems/selenium-webdriver-4.23.0/lib/selenium/webdriver/remote/response.rb:62:in 'add_cause': binary is not a Firefox executable (Selenium::WebDriver::Error::InvalidArgumentError)
```

and `bundle exec rails test:all` gives me 260 times the same error:
```
Error:
UserMutingTest#<test_name>
Selenium::WebDriver::Error::InvalidArgumentError: binary is not a Firefox executable
```

I noticed that selenium is used since the recent PR #5216 by @kcne, could you help me ?

I read that this bug can occur depending on the path to firefox or geckoriver. On my system:
- firefox is in `/usr/bin/firefox`
- geckodriver is in `/snap/bin/geckodriver`

By the way, I also noticed a bug with `bundle exec erblint` which returns `no files found or given, specify files or config...`. I had to modify the command to `bundle exec erblint *` but then it checks non erb files like GemLock and LICENSE. What is the correct command ?

Thanks !

### Screenshot(s) or anything else?

_No response_

-- 
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/issues/5467
You are receiving this because you are subscribed to this thread.

Message ID: <openstreetmap/openstreetmap-website/issues/5467 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20250104/cacd2ae9/attachment.htm>


More information about the rails-dev mailing list