Closed stardust66 closed 6 years ago
I found out that the Preview button fails when the "Restroom Name" field (on the new restroom form) isn't empty. (This happens because we get a bad response from the Maps API).
In the test file, preview_steps.rb, the restroom name is filled out (with the text "Vancouver restroom" for the name).
So, given that the name field isn't empty, and due to the Maps API not liking the request we send out, at the moment the Geolocation fails and the test subsequently fails.
I looked into it a bit further, and the Restroom Name value gets passed to Google as part of the request we send out. I assume if that is not sent, we'll get a good response.
Seems like changing this line should fix it: new.coffee, line 44 or so
address = "#{name}, #{street}, #{city}, #{state}, #{country}"
Merging to a separate branch so I can fix the other issue
Context
Summary of Changes
Checklist