spec/integration/session_spec.rb in capybara-webkit-1.13.0 vs spec/integration/session_spec.rb in capybara-webkit-1.14.0
- old
+ new
@@ -323,9 +323,19 @@
subject.click_button 'B Button'
}.to raise_error(Capybara::Webkit::ClickFailed)
end
end
end
+
+ it "can swap to the same frame multiple times" do
+ subject.visit("/")
+ subject.within_frame("a_frame") do
+ expect(subject).to have_content("Page A")
+ end
+ subject.within_frame("a_frame") do
+ expect(subject).to have_content("Page A")
+ end
+ end
end
context 'click tests' do
before(:all) do
@app = Class.new(ExampleApp) do