Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Failing test for issue #223

  • Loading branch information...
commit 7f88cf3bda9971a551c559a0126f1e516778cc88 1 parent 4b7eff3
@jonleighton jonleighton authored
Showing with 17 additions and 0 deletions.
  1. +16 −0 spec/integration/session_spec.rb
  2. +1 −0  spec/support/views/iframe.erb
View
16 spec/integration/session_spec.rb
@@ -410,6 +410,22 @@
log.text.should == "one"
end
end
+
+ it "supports filling in an iframe two levels deep" do
+ @session.visit "/"
+ @session.evaluate_script <<-CODE
+ setTimeout(function() {
+ document.body.innerHTML += '<iframe src="/poltergeist/iframe" name="iframe" width="600" height="600">'
+ }, 0)
+ CODE
+
+ @session.within_frame "iframe" do
+ @session.within_frame "form" do
+ @session.fill_in "First Name", with: "omg"
+ @session.find_field("First Name").value.should == "omg"
+ end
+ end
+ end
end
# see https://github.com/jonleighton/poltergeist/issues/115
View
1  spec/support/views/iframe.erb
@@ -0,0 +1 @@
+<iframe src="/form" width="600" height="600" name="form">
Please sign in to comment.
Something went wrong with that request. Please try again.