From: marc tobias Date: Thu, 4 Apr 2024 21:59:59 +0000 (+0200) Subject: detail page: add country to postcode -search by name- link X-Git-Url: https://git.openstreetmap.org./nominatim-ui.git/commitdiff_plain/f8e7737567b4d629cd3bc0524abdadcc06d7b3aa detail page: add country to postcode -search by name- link --- diff --git a/test/details.js b/test/details.js index dc907d0..a6fd5e5 100644 --- a/test/details.js +++ b/test/details.js @@ -66,14 +66,14 @@ describe('Details Page', function () { assert.strictEqual((await page.$$eval(`a[href="${url}"]`, (links) => links.length)), 2); }); - it('should have a link to postcode which includes country code', async function () { - const url = 'search.html?postalcode=9490&country=li'; - - assert.strictEqual((await page.$$eval(`a[href="${url}"]`, (links) => links.length)), 1); - }); - // Reverse-only installation have no search index, therefore no keywords if (!reverse_only) { + it('should have a link to postcode which includes country code', async function () { + const url = 'search.html?postalcode=9490&country=li'; + + assert.strictEqual((await page.$$eval(`a[href="${url}"]`, (links) => links.length)), 1); + }); + it('should change url and add new header on clicking display keywords', async function () { let current_url; let display_headers;