1 Feature: Entrance nodes are recorded
2 Test that updated entrance nodes are saved
4 Scenario: A building with a newly tagged entrance
9 | osm | class | type | geometry |
10 | W1 | building | yes | (1,2,3,4,1) |
15 Then placex contains exactly
18 Then placex_entrance contains exactly
19 | place_id | osm_id | type | location!wkt | extratags |
20 When updating entrances
21 | osm | type | geometry |
24 | osm | class | type | geometry |
25 | W1 | building | yes | (1,2,3,4,1) |
26 Then placex contains exactly
29 Then placex_entrance contains exactly
30 | place_id | osm_id | type | location!wkt | extratags |
31 | 1 | 1 | main | 1 | - |
33 Scenario: A building with a updated entrance node
38 | osm | class | type | geometry |
39 | N1 | barrier | gate | 1 |
40 | W1 | building | yes | (1,2,3,4,1) |
45 Then placex contains exactly
49 Then placex_entrance contains exactly
50 | place_id | osm_id | type | location!wkt | extratags |
51 When marking for delete N1
52 And updating entrances
53 | osm | type | geometry |
56 | osm | class | type | geometry |
57 | W1 | building | yes | (1,2,3,4,1) |
58 Then placex contains exactly
61 And placex_entrance contains exactly
62 | place_id | osm_id | type | location!wkt | extratags |
63 | 2 | 1 | main | 1 | - |
65 Scenario: A building with a removed entrance
70 | osm | class | type | geometry |
71 | W1 | building | yes | (1,2,3,4,1) |
73 | osm | type | geometry |
79 Then placex contains exactly
82 And placex_entrance contains exactly
83 | place_id | osm_id | type | location!wkt | extratags |
84 | 1 | 1 | main | 1 | - |
85 When marking for delete N1
87 | osm | class | type | geometry |
88 | W1 | building | yes | (1,2,3,4,1) |
89 Then placex contains exactly
92 And placex_entrance contains exactly
93 | place_id | osm_id | type | location!wkt | extratags |
95 Scenario: A building with a removed and remaining entrance
100 | osm | class | type | geometry |
101 | W1 | building | yes | (1,2,3,4,1) |
103 | osm | type | geometry |
108 | 1 | 1, 2, 3, 4, 1 |
110 Then placex contains exactly
111 | object | place_id |
113 And placex_entrance contains exactly
114 | place_id | osm_id | type | location!wkt | extratags |
115 | 1 | 1 | main | 1 | - |
116 | 1 | 3 | yes | 3 | - |
117 When marking for delete N1
119 | osm | class | type | geometry |
120 | W1 | building | yes | (1,2,3,4,1) |
121 Then placex contains exactly
122 | object | place_id |
124 And placex_entrance contains exactly
125 | place_id | osm_id | type | location!wkt | extratags |
126 | 1 | 3 | yes | 3 | - |