update test for frame scoping behavior change
This commit is contained in:
parent
5534b3932f
commit
c99ebbcf37
|
@ -64,7 +64,7 @@ Capybara::SpecHelper.spec '#within_frame', requires: [:frames] do
|
|||
|
||||
it "should reset scope when changing frames" do
|
||||
@session.within(:css, '#divInMainWindow') do
|
||||
@session.within_frame 'parentFrame' do
|
||||
@session.within_frame 'innerParentFrame' do
|
||||
expect(@session.has_selector?(:css, "iframe#childFrame")).to be true
|
||||
end
|
||||
end
|
||||
|
|
|
@ -4,7 +4,10 @@
|
|||
<title>With Frames</title>
|
||||
</head>
|
||||
<body>
|
||||
<div id="divInMainWindow">This is the text for divInMainWindow</div>
|
||||
<div id="divInMainWindow">
|
||||
This is the text for divInMainWindow
|
||||
<iframe src="/frame_parent" id="innerParentFrame"></iframe>
|
||||
</div>
|
||||
<iframe src="/frame_one" id="frameOne" name="my frame one"></iframe>
|
||||
<iframe src="/frame_two" id="frameTwo"></iframe>
|
||||
<iframe src="/frame_parent" id="parentFrame"></iframe>
|
||||
|
|
Loading…
Reference in New Issue