[openstreetmap/openstreetmap-website] Click login below inputs in system test sign in (PR #4489)

Anton Khorev notifications at github.com
Sat Jan 20 00:54:49 UTC 2024


You enforce [this Rubocop rule](https://docs.rubocop.org/rubocop-capybara/cops_capybara.html#capybaraclicklinkorbuttonstyle) because users may not be able to tell the difference between a button and a link, but then you also use `within` with a class selector that users have no idea about.

Changed to `within` + form selector with text content in case there's more than one form (there is, although the other form is hidden).

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

Message ID: <openstreetmap/openstreetmap-website/pull/4489/c1901486589 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20240119/77b14e41/attachment-0001.htm>


More information about the rails-dev mailing list