]> git.openstreetmap.org Git - nominatim-ui.git/blobdiff - test/_bootstrap.js
Upgrade deprecated Github Actions
[nominatim-ui.git] / test / _bootstrap.js
index ad7733a5f95606ba9868c1faae1b52a7b0e5c0a4..103784e909f0bc9247499b7de6926f05660a7bb0 100644 (file)
@@ -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'
     ]