fix body scrollTop references

This commit is contained in:
Mike Greiling 2017-10-24 15:29:37 +03:00
parent 80c25e8b9a
commit 01605bc78c
No known key found for this signature in database
GPG key ID: 0303DF507FA67596

View file

@ -192,7 +192,7 @@ feature 'Diff notes resolve', :js do
page.find('.discussion-next-btn').click
end
expect(page.evaluate_script("$('body').scrollTop()")).to be > 0
expect(page.evaluate_script("window.pageYOffset")).to be > 0
end
it 'hides jump to next button when all resolved' do
@ -308,7 +308,7 @@ feature 'Diff notes resolve', :js do
page.find('.discussion-next-btn').click
end
expect(page.evaluate_script("$('body').scrollTop()")).to be > 0
expect(page.evaluate_script("window.pageYOffset")).to be > 0
end
it 'updates updated text after resolving note' do