Skip to content

Commit

Permalink
Use element further up the page in test due to default window size on…
Browse files Browse the repository at this point in the history
… travis
  • Loading branch information
twalpole committed May 12, 2019
1 parent 09d2f33 commit 2e440b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/capybara/spec/session/node_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@
end

it 'should see elements only overlapped by descendants as not obscured' do
expect(@session.find(:css, '#ancestor3')).not_to be_obscured
expect(@session.first(:css, 'p:not(.para)')).not_to be_obscured
end

it 'should see elements outside the viewport as obscured' do
Expand Down

0 comments on commit 2e440b9

Please sign in to comment.