X-Git-Url: https://git.openstreetmap.org./nominatim-ui.git/blobdiff_plain/0f87b4b80166f1b46bb5a8ff079df1644ecceb90..5bbe331d6aff4d3aeca2006fa3d0d8dafe8be674:/test/details.js?ds=sidebyside diff --git a/test/details.js b/test/details.js index 2d1094d..a6fd5e5 100644 --- a/test/details.js +++ b/test/details.js @@ -68,6 +68,12 @@ describe('Details Page', function () { // 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;