]> git.openstreetmap.org Git - nominatim-ui.git/commitdiff
Feat: Added user-agent to puppeteer (#135)
authorYash Srivastava <52625656+darkshredder@users.noreply.github.com>
Wed, 21 Apr 2021 15:55:35 +0000 (21:25 +0530)
committerGitHub <noreply@github.com>
Wed, 21 Apr 2021 15:55:35 +0000 (17:55 +0200)
test/_bootstrap.js

index bd3fd01b3abf56b1175630d28b85b6d4e6c911b4..0c344ec46ca2eff825a1e5bcad224e894b2249e8 100644 (file)
@@ -25,7 +25,10 @@ Nominatim_Config.Nominatim_API_Endpoint = 'https:/nominatim.openstreetmap.org/';
   // 3. Create browser instance
   global.browser = await puppeteer.launch({
     defaultViewport: { width: 1024, height: 768 },
-    timeout: 5000
+    timeout: 5000,
+    args: [
+      '--user-agent=Nominatim UI test suite Mozilla/5.0 Gecko/20100101 HeadlessChrome/90.0'
+    ]
   });
 };