1
0
Fork 0
mirror of https://github.com/teamcapybara/capybara.git synced 2022-11-09 12:08:07 -05:00

test for within frame and scope resetting

This commit is contained in:
Thomas Walpole 2013-07-02 10:10:02 -07:00
parent 89ba2c6ecc
commit 7457ba9b58

View file

@ -42,4 +42,11 @@ Capybara::SpecHelper.spec '#within_frame', :requires => [:frames] do
end
end
end
it "should reset scope when changing frames", tw: true do
@session.within(:css, '#divInMainWindow') do
@session.within_frame 'parentFrame' do
@session.has_selector?(:css, "iframe#childFrame").should be_true
end
end
end
end