X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/cb0c5262a8a72baa4f0a960f422a3c54a13837cb..e6edca07dd626e5efa889bfdad9e105ef4445f27:/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"