How do you use Capybara to test elements with contenteditable="true" ?
Using this specification ...
scenario "Using valid input" do fill_in "name", with: "Zinn" click_button "Update" expect(page).to have_content("Update successful!") end
... and this eco file ...
<td id="name" contenteditable="true"><%= @name %></td> <td><button id="update" class="btn btn-sm btn-default">Update</button></td>
I get this unsuccessful specification ...
Capybara::ElementNotFound: Unable to find field "name"
source share