X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/c3f0dc8969aa41f07cd45563b65c4493ac187bde..9bd29748be8e6770e276e93e54bb99c69d464498:/test/system/directions_test.rb diff --git a/test/system/directions_test.rb b/test/system/directions_test.rb index 91a033c4d..a0ca87ce7 100644 --- a/test/system/directions_test.rb +++ b/test/system/directions_test.rb @@ -22,9 +22,7 @@ class DirectionsSystemTest < ApplicationSystemTestCase assert_content "Start popup text" end - within_sidebar do - find("button[aria-label='Close']").click - end + find("#sidebar .sidebar-close-controls button[aria-label='Close']").click within "#map" do assert_no_content "Start popup text"