From: Yash Srivastava <52625656+darkshredder@users.noreply.github.com> Date: Wed, 21 Apr 2021 15:55:35 +0000 (+0530) Subject: Feat: Added user-agent to puppeteer (#135) X-Git-Url: https://git.openstreetmap.org./nominatim-ui.git/commitdiff_plain/34e32f291f0e787a65172179a57cf9418a6b05b4 Feat: Added user-agent to puppeteer (#135) --- diff --git a/test/_bootstrap.js b/test/_bootstrap.js index bd3fd01..0c344ec 100644 --- a/test/_bootstrap.js +++ b/test/_bootstrap.js @@ -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' + ] }); };