From c0f6b6c54c8716155bae784480e02a6888ce8d3a Mon Sep 17 00:00:00 2001 From: Wentao Kuang Date: Fri, 27 Sep 2024 10:01:00 +1200 Subject: [PATCH] Add pitch to test --- src/screenshot.ts | 2 +- src/tiles.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/screenshot.ts b/src/screenshot.ts index 0ec85c1..ac23afe 100644 --- a/src/screenshot.ts +++ b/src/screenshot.ts @@ -84,7 +84,7 @@ async function takeScreenshots( await mkdir(`.artifacts/visual-snapshots/`, { recursive: true }); - let url = `https://basemaps.linz.govt.nz/?${searchParam.toString()}&debug=true&debug.screenshot=true#${loc}&config=TmVmbYRQjL9T2JWgyaSie193b4D1qZnBD8hjaSqPFYSsEvEYYhaGYKrcjU4w8zzJtjrbg9ZyppQjk9rQhE48KgKBnwiiZiWCZ1VmqZaoHjt7RUqdGEndMkfPgpuCZNZ`; + let url = `${args.url}/?${searchParam.toString()}&debug=true&debug.screenshot=true#${loc}`; if (!url.startsWith('http')) url = `https://${url}`; logger.info({ url, expected: output }, 'Page:Load'); diff --git a/src/tiles.ts b/src/tiles.ts index b64b9d1..a77ac17 100644 --- a/src/tiles.ts +++ b/src/tiles.ts @@ -134,9 +134,9 @@ export const DefaultTestTiles: TestTile[] = [ hillshade: 'LINZ-Terrain', }, { - name: 'aerial-3857-mount-taranaki-terrain-hillshade-z11', + name: 'aerial-3857-mount-taranaki-terrain-hillshade-14', tileMatrix: TileMatrixIdentifier.Google, - location: { lat: -39.2934958, lng: 174.072223, z: 11 }, + location: { lat: -39.3031717, lng: 174.0585208, z: 14, p: 43 }, tileSet: 'aerial', style: 'aerial', terrain: 'LINZ-Terrain',