Skip to content

Commit

Permalink
fixing test
Browse files Browse the repository at this point in the history
  • Loading branch information
jonrohan committed Dec 14, 2023
1 parent 7c6a13c commit aef8227
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion test/system/alpha/action_menu_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -732,13 +732,18 @@ def test_fires_event_on_activation

def test_doesnt_scroll_when_opened
visit_preview(:in_scroll_container)
focus_on_invoker_button

# Scroll to the invoker button
page.evaluate_script("window.scrollTo(0,400)")

# Confirm that the page is scrolled
assert_equal 400, page.evaluate_script("window.scrollY")

click_on_invoker_button
# Click on the button to open the menu
page.driver.browser.keyboard.type(:enter)

# Assert we're still scrolled
assert_equal 400, page.evaluate_script("window.scrollY")
end
end
Expand Down

0 comments on commit aef8227

Please sign in to comment.