From 34e32f291f0e787a65172179a57cf9418a6b05b4 Mon Sep 17 00:00:00 2001 From: Yash Srivastava <52625656+darkshredder@users.noreply.github.com> Date: Wed, 21 Apr 2021 21:25:35 +0530 Subject: [PATCH 1/1] Feat: Added user-agent to puppeteer (#135) --- test/_bootstrap.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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' + ] }); }; -- 2.39.5