forked from publiclab/plots2
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Pages tagged with place get a full-width map across the top of the p…
…age (instead of in the sidebar) (publiclab#5518) * full width map from sidebar * indentation done * code climate issue fixed * system test added * system test added * system test modification * assert presence of div * assert_selector used * tests modified
- Loading branch information
1 parent
1cb17d1
commit 77cb989
Showing
8 changed files
with
62 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -103,3 +103,7 @@ SubLatitudeLongitude2: | |
balloon: | ||
tid: 26 | ||
name: balloon | ||
|
||
place: | ||
tid: 27 | ||
name: place |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
require "application_system_test_case" | ||
|
||
class PlaceTagsTest < ApplicationSystemTestCase | ||
|
||
# node blog has lat and lon tag and place tag . | ||
test "pages tagged with place get a full-width map across the top of the page" do | ||
visit nodes(:blog).path | ||
assert_selector('h1', text: 'Blog post') | ||
assert_selector('div#top_map') | ||
assert_selector('div.leaflet-layer') | ||
end | ||
|
||
# one map has no place tag . | ||
test "pages not tagged with place gets a side map" do | ||
visit nodes(:one).path | ||
assert_selector('h1', text: 'Canon A1200 IR conversion at PLOTS Barnraising at LUMCON') | ||
assert_selector('div.leaflet-layer' , count: 0) | ||
end | ||
|
||
end |