From 454838008047a85185d61301e8c8fd6db0604a14 Mon Sep 17 00:00:00 2001 From: Sage Ross Date: Thu, 30 Dec 2021 14:09:19 -0800 Subject: [PATCH] Replace "execute_script" in spec scrolling down on notifications --- features/step_definitions/notifications_steps.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/features/step_definitions/notifications_steps.rb b/features/step_definitions/notifications_steps.rb index 9088dacc2..9c521a908 100644 --- a/features/step_definitions/notifications_steps.rb +++ b/features/step_definitions/notifications_steps.rb @@ -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