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

> So it sounds like this is a solution to that but with the downside that 
> you're really testing how the site will behave in a browser any more.

I have the "behave like a browser" split into two aspects in my mind:
* With regards to the manner that the tests are written in, I prefer "click_on 
link, fill_in foo, click submit" as more closely mimicking what a user is 
doing. The alternative is "assert page has_link(foo), get foo, assert_dom 
has_input_field, post bar" and I find that more fragile and generally less like 
mimicking the user experience. So that's in favour of the system test syntax.
* Then when it comes to the manner the tests are run, I'd love to just push 
everything through a real (albeit headless) browser, but for practical reasons 
it can be painfully slow. I console (delude?) myself that using e.g. rack-test 
(or similar) is like "using the site with javascript disabled". It's not ideal, 
but I haven't come across many actual problems with doing that.

I live in hope that someone can create something that's much closer to a real 
browser, in terms of layout engines and js execution, without having to 
actually be an entire browser and all the headaches that brings.


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

Message ID: 
<openstreetmap/openstreetmap-website/pull/6497/[email protected]>
_______________________________________________
rails-dev mailing list
[email protected]
https://lists.openstreetmap.org/listinfo/rails-dev

Reply via email to