@@ -40,7 +40,7 @@ const villages = [
40
40
'Heyshott' ,
41
41
'Hinton St George' ,
42
42
'Holme-next-the-Sea' ,
43
- // 'Hoxne',
43
+ 'Hoxne' ,
44
44
'Icklesham' ,
45
45
'Ilmington' ,
46
46
'Kersey' ,
@@ -75,7 +75,7 @@ const villages = [
75
75
'Staithes' ,
76
76
'Stanton' ,
77
77
'Steeple Ashton' ,
78
- // 'Stoke Gabriel',
78
+ 'Stoke Gabriel' ,
79
79
'Stow-on-the-Wold' ,
80
80
'Swanton Morley' ,
81
81
'Symondsbury' ,
@@ -164,7 +164,6 @@ const towns = [
164
164
'Hexham' ,
165
165
'Hitchin' ,
166
166
'Honiton' ,
167
- 'Hoxne' ,
168
167
'Hungerford' ,
169
168
'Ilkeston' ,
170
169
'Kendal' ,
@@ -204,11 +203,66 @@ const towns = [
204
203
'Sandbach' ,
205
204
'Shepton Mallet' ,
206
205
'St Ives, Cornwall' ,
207
- 'Stoke Gabriel' ,
208
206
'Stone' ,
209
207
'Wetherby'
210
208
]
211
209
210
+ const counties = [
211
+ 'Bedfordshire' ,
212
+ 'Berkshire' ,
213
+ 'Buckinghamshire' ,
214
+ 'Cambridgeshire' ,
215
+ 'Cheshire' ,
216
+ 'Cornwall' ,
217
+ 'Cumbria' ,
218
+ 'Derbyshire' ,
219
+ 'Devon' ,
220
+ 'Dorset' ,
221
+ 'Durham' ,
222
+ 'East Sussex' ,
223
+ 'Essex' ,
224
+ 'Gloucestershire' ,
225
+ 'Greater Manchester' ,
226
+ 'Hampshire' ,
227
+ 'Herefordshire' ,
228
+ 'Hertfordshire' ,
229
+ 'Isle of Wight' ,
230
+ 'Kent' ,
231
+ 'Lancashire' ,
232
+ 'Leicestershire' ,
233
+ 'Lincolnshire' ,
234
+ 'Shropshire' ,
235
+ 'West Yorkshire'
236
+ ]
237
+
238
+ const cities = [
239
+ 'Bath' ,
240
+ 'Birmingham' ,
241
+ 'Bradford' ,
242
+ 'Brighton and Hove' ,
243
+ 'Bristol' ,
244
+ 'Cambridge' ,
245
+ 'Canterbury' ,
246
+ 'Carlisle' ,
247
+ 'Chester' ,
248
+ 'Coventry' ,
249
+ 'Derby' ,
250
+ 'Durham' ,
251
+ 'Exeter' ,
252
+ 'Gloucester' ,
253
+ 'Kingston upon Hull' ,
254
+ 'Lancaster' ,
255
+ 'Leeds' ,
256
+ 'Leicester' ,
257
+ 'Liverpool' ,
258
+ 'Manchester' ,
259
+ 'Newcastle upon Tyne' ,
260
+ 'Norwich' ,
261
+ 'Nottingham' ,
262
+ 'Oxford' ,
263
+ 'Sheffield'
264
+ ]
265
+
212
266
// These are towns where searching by the name doesn't
213
267
// return a high confidence UK location
214
268
const unknownPlaces = [
@@ -218,7 +272,7 @@ const unknownPlaces = [
218
272
]
219
273
220
274
// These are towns where searching by the Bing qualified name doesn't
221
- // return a high confidence location which matches the Bing name
275
+ // return a location which matches the slugified Bing name
222
276
const brokenPlaces = [
223
277
'Kington' // => Kington, County of Herefordshire => none
224
278
]
@@ -239,6 +293,8 @@ async function resultCheck (town) {
239
293
240
294
// These tests document known issues with bing search and, as such, they will
241
295
// will hit bing and the sad path tests will fail (hence the use of skip)
296
+ // They are retained as a useful check on Bing search and are intended to be run
297
+ // ad-hoc (by selective removal of skip and the --grep option of lab
242
298
describe . skip ( 'location service integration tests' , ( ) => {
243
299
// Helper function to dynamically generate tests
244
300
const generateTests = ( places , description ) => {
@@ -254,6 +310,8 @@ describe.skip('location service integration tests', () => {
254
310
describe ( 'Happy path' , ( ) => {
255
311
generateTests ( villages , 'Villages: Searching by found name returns the same location' )
256
312
generateTests ( towns , 'Towns: Searching by found name returns the same location' )
313
+ generateTests ( counties , 'Counties: Searching by found name returns the same location' )
314
+ generateTests ( cities , 'Cities: Searching by found name returns the same location' )
257
315
} )
258
316
259
317
describe ( 'Sad path: known Bing issues' , ( ) => {
0 commit comments