Replace "execute_script" in spec scrolling down on notifications

This commit is contained in:
Sage Ross 2021-12-30 14:09:19 -08:00 committed by Benjamin Neff
parent b67cf8e983
commit 4548380080
No known key found for this signature in database
GPG key ID: 971464C3F1A90194

View file

@ -24,7 +24,7 @@ And "I wait for notifications to load" do
end
And "I scroll down on the notifications dropdown" do
page.execute_script("$('.notifications').scrollTop(350)")
find(".notifications").scroll_to(0, 350)
end
Then "the notification dropdown should be visible" do