New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Weird HTML escape in generated update session page when using capybara with JS #2
Comments
ghost
assigned ayanko
Sep 22, 2012
I'll check & fix |
Questions:
$ cat test_builder.rb require 'rubygems' require 'builder' builder = Builder::XmlMarkup.new(:indent => 2) builder.html do |xml| xml.body do |xml| xml.textarea("", :cols => 40, :rows => 10, :name => 'data') xml.p do |xml| xml.input(:type => 'submit', :value => "Update") end end end data = builder.target! puts data |
Hi and thanks for looking for this strange issue. The generated output of the test file looks fine. As I said, the HTML output is only bad when using js: true in my test. My tests which don't use JS works great with rack_session_access.
|
#4 fixes my problem :) |
released v0.0.3 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi,
when enabling js in my integration test (using js: true) and capybara-webkit like this :
The test fails with :
I've taken a look at the generated update session page HTML and it contains some weird HTML escape but only some parts of the form seem escaped (very weird) :
Have you got some ideas?
Thanks.
Using : rails 2.3.8 / capybara 1.1.2 / capybara-screenshot 0.2.2 / capybara-webkit 0.12.1
The text was updated successfully, but these errors were encountered: