calebhearth / formulaic

Simplify form filling with Capybara

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

When a date is named "date" formulaic can not find it on the page

jamesBrennan opened this issue · comments

I ran into this in my own code and then forked and modified the specs here to confirm.

Here's my commit that causes the failing test:
https://github.com/jamesBrennan/formulaic/commit/a79df327a8f6d70ded4f21e8d047ead2618244c3

I don't have time to look at a fix for this right now. If I do start to work on it I'll update this issue.

Cool, I'll take a look when I get a chance. Nothing comes to mind as an obvious problem.

I'm able to make your branch pass by also changing the translation:

@@ -25,7 +25,7 @@ module SpecHelper
               avatar: Avatar
               awesome: Are you awesome?
               bio: Biography
-              date_of_birth: Date of birth
+              date: Date
               email: Email
               name: Display name
               new:

I'm closing this, but feel free to let me know if that doesn't solve it for you.