[openstreetmap/openstreetmap-website] WIP: Reduce use of Selenium in favour of rack-test (PR #6497)

Pablo Brasero notifications at github.com
Tue Feb 3 10:46:45 UTC 2026


pablobm left a comment (openstreetmap/openstreetmap-website#6497)

Tried to put together some metaprogramming to provide a `js_test` method that defines Selenium-driven tests, separate from the rack-test ones. No success yet. I'm trying to get this method to put these Selenium tests in a separate class, basically automating what I'm doing with `HtmlTest`/`JsTest`, however I'm finding a problem:

- If the new class inherits from the one where the tests are actually defined in code, then the tests will run twice: one for the new class and one for the parent.
- If the new class doesn't inherit from there, then the tests will not have access to `setup`/`teardown` or private helpers.

Putting to rest for now until I can come up with better ideas that are not overly clever.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/6497#issuecomment-3840561648
You are receiving this because you are subscribed to this thread.

Message ID: <openstreetmap/openstreetmap-website/pull/6497/c3840561648 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20260203/fd7c137c/attachment.htm>


More information about the rails-dev mailing list