X-Git-Url: https://git.openstreetmap.org./nominatim-ui.git/blobdiff_plain/b2d1e2a271b3f2157987908bb284be14732a747b..437201f4e2c0a9e2fc25ac3dc51d67f11c351728:/test/_bootstrap.js diff --git a/test/_bootstrap.js b/test/_bootstrap.js index ad7733a..746d15d 100644 --- a/test/_bootstrap.js +++ b/test/_bootstrap.js @@ -7,7 +7,7 @@ import fse from 'fs-extra'; const testing_port = 9999; // this is the port all tests expect nominatim-ui to listen to // The installation on https://nominatim.openstreetmap.org/ui/ is a bit more complex as -// for backward compatiblity they run the API and the UI on the same port. Nominatim-UI +// for backward compatibility they run the API and the UI on the same port. Nominatim-UI // is installed in the /ui subdirectory plus their webserver has custom redirect rules. // // We can simulate that with a proxy. @@ -49,7 +49,7 @@ Nominatim_Config.Reverse_Only = ${reverse_only}; let api_url_match = req.url.match(/\/(\w+\.php)/); let target = api_url_match - ? 'http://nominatim.openstreetmap.org/' + api_url_match[1] + ? 'https://nominatim.openstreetmap.org' : 'http://localhost:' + static_port; // console.log(`http proxy ${req.url} => ${target + req.url}`) @@ -64,6 +64,7 @@ Nominatim_Config.Reverse_Only = ${reverse_only}; defaultViewport: { width: 1024, height: 768 }, timeout: 10000, // latency: 1000, + headless: 'new', args: [ '--user-agent=Nominatim UI test suite Mozilla/5.0 Gecko/20100101 HeadlessChrome/90.0' ]