X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/3d3b2b47964ec91ef1ab1946b7258a06665caced..efc65b86a23032e7867314082f80e1da3654b51a:/test/system/directions_test.rb?ds=inline 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"