@@ -21,7 +21,7 @@ import { aWorkspace, PROJECT_GROUP_ID } from '../mocks/fixtures';
2121// so the service `<option>`s shown must match that simulated response.
2222//
2323// The upload flow (services/export/tdei.ts, osw branch) runs:
24- // OSM GET workspaces/{id}/bbox.json (dataset_area not in metadata)
24+ // API GET workspaces/{id}/bbox (dataset_area not in metadata)
2525// OSM GET map?bbox=... (export workspace xml)
2626// TDEI POST osw/convert -> jobId; poll TDEI GET jobs?job_id=... until COMPLETED;
2727// TDEI GET job/download/{jobId}
@@ -155,9 +155,10 @@ test('submitting with valid values shows a loading state', async ({ page }) => {
155155 await stubPageLoad ( page , [ eligibleProjectGroup ] ) ;
156156 await stubServices ( page ) ;
157157
158- // OSM bbox + xml export so the flow reaches the convert step. The OSM API base
159- // is http://api.test/osm/api/0.6/, so the globs must include api/0.6/.
160- await page . route ( '**/osm/api/0.6/workspaces/1/bbox.json' , route =>
158+ // Workspace bbox (new-API, decimal degrees) + OSM xml export so the flow reaches
159+ // the convert step. The OSM map base is http://api.test/osm/api/0.6/, so those
160+ // globs must include api/0.6/; the bbox now lives on the new API.
161+ await page . route ( '**/workspaces/1/bbox' , route =>
161162 route . fulfill ( { json : { min_lat : 47.6 , min_lon : - 122.34 , max_lat : 47.62 , max_lon : - 122.32 } } )
162163 ) ;
163164 await page . route ( '**/osm/api/0.6/map?**' , route =>
@@ -184,7 +185,7 @@ test('a duplicate dataset version shows an error and lets the user change the ve
184185 await stubPageLoad ( page , [ eligibleProjectGroup ] ) ;
185186 await stubServices ( page ) ;
186187
187- await page . route ( '**/osm/api/0.6/ workspaces/1/bbox.json ' , route =>
188+ await page . route ( '**/workspaces/1/bbox' , route =>
188189 route . fulfill ( { json : { min_lat : 47.6 , min_lon : - 122.34 , max_lat : 47.62 , max_lon : - 122.32 } } )
189190 ) ;
190191 await page . route ( '**/osm/api/0.6/map?**' , route =>
@@ -245,7 +246,7 @@ test('an API error shows an error message and a Try again button that resets the
245246 await stubPageLoad ( page , [ eligibleProjectGroup ] ) ;
246247 await stubServices ( page ) ;
247248
248- await page . route ( '**/osm/api/0.6/ workspaces/1/bbox.json ' , route =>
249+ await page . route ( '**/workspaces/1/bbox' , route =>
249250 route . fulfill ( { json : { min_lat : 47.6 , min_lon : - 122.34 , max_lat : 47.62 , max_lon : - 122.32 } } )
250251 ) ;
251252 await page . route ( '**/osm/api/0.6/map?**' , route =>
0 commit comments