X-Git-Url: https://git.openstreetmap.org./nominatim-ui.git/blobdiff_plain/f5a4f0a5e1d87a05014292b91f416c2e6e7827e3..d1075b7512f5004614ac98c174f2ba699cb510b9:/test/_bootstrap.js diff --git a/test/_bootstrap.js b/test/_bootstrap.js index b527ee8..b538f5c 100644 --- a/test/_bootstrap.js +++ b/test/_bootstrap.js @@ -13,7 +13,7 @@ const testing_port = 9999; // this is the port all tests expect nominatim-ui to // We can simulate that with a proxy. const use_proxy = !!process.env.API_ON_SAME_PORT; const static_port = use_proxy ? 9998 : 9999; - +const reverse_only = !!process.env.REVERSE_ONLY; // Methods to run at the start and end of the mocha testsuite run // https://mochajs.org/#global-setup-fixtures @@ -28,6 +28,7 @@ exports.mochaGlobalSetup = async function () { fse.outputFile(workdir + '/theme/config.theme.js', ` Nominatim_Config.Nominatim_API_Endpoint = '${api_endpoint}'; +Nominatim_Config.Reverse_Only = ${reverse_only}; `); @@ -61,7 +62,8 @@ Nominatim_Config.Nominatim_API_Endpoint = '${api_endpoint}'; // 3. Create browser instance global.browser = await puppeteer.launch({ defaultViewport: { width: 1024, height: 768 }, - timeout: 5000, + timeout: 10000, + // latency: 1000, args: [ '--user-agent=Nominatim UI test suite Mozilla/5.0 Gecko/20100101 HeadlessChrome/90.0' ]