@@ -6,41 +6,41 @@ class AccountHomeTest < ApplicationSystemTestCase
6
6
sign_in_as ( user )
7
7
8
8
visit root_path
9
- assert_no_selector "img .leaflet-marker-icon"
9
+ assert_no_selector "div .leaflet-marker-icon"
10
10
11
11
click_on "test user"
12
12
click_on "Go to Home Location"
13
- all "img .leaflet-marker-icon" , :count => 1 do |marker |
13
+ all "div .leaflet-marker-icon" , :count => 1 do |marker |
14
14
assert_equal "My home location" , marker [ "title" ]
15
15
end
16
16
17
17
click_on "OpenStreetMap logo"
18
- assert_no_selector "img .leaflet-marker-icon"
18
+ assert_no_selector "div .leaflet-marker-icon"
19
19
end
20
20
21
21
test "Go to Home Location works on non-map layout pages" do
22
22
user = create ( :user , :display_name => "test user" , :home_lat => 60 , :home_lon => 30 )
23
23
sign_in_as ( user )
24
24
25
25
visit about_path
26
- assert_no_selector "img .leaflet-marker-icon"
26
+ assert_no_selector "div .leaflet-marker-icon"
27
27
28
28
click_on "test user"
29
29
click_on "Go to Home Location"
30
- all "img .leaflet-marker-icon" , :count => 1 do |marker |
30
+ all "div .leaflet-marker-icon" , :count => 1 do |marker |
31
31
assert_equal "My home location" , marker [ "title" ]
32
32
end
33
33
34
34
click_on "OpenStreetMap logo"
35
- assert_no_selector "img .leaflet-marker-icon"
35
+ assert_no_selector "div .leaflet-marker-icon"
36
36
end
37
37
38
38
test "Go to Home Location is not available for users without home location" do
39
39
user = create ( :user , :display_name => "test user" )
40
40
sign_in_as ( user )
41
41
42
42
visit root_path
43
- assert_no_selector "img .leaflet-marker-icon"
43
+ assert_no_selector "div .leaflet-marker-icon"
44
44
45
45
click_on "test user"
46
46
assert_no_link "Go to Home Location"
@@ -51,7 +51,7 @@ class AccountHomeTest < ApplicationSystemTestCase
51
51
sign_in_as ( user )
52
52
53
53
visit account_home_path
54
- assert_no_selector "img .leaflet-marker-icon"
54
+ assert_no_selector "div .leaflet-marker-icon"
55
55
assert_text "Home location is not set"
56
56
end
57
57
end
0 commit comments