]> git.openstreetmap.org Git - nominatim-ui.git/blobdiff - test/details.js
detail page: add country to postcode -search by name- link
[nominatim-ui.git] / test / details.js
index 2d1094d78f3cf59372c4287434de0c238a6b6910..dc907d0b01cca27ad360583531a34d19722f60ee 100644 (file)
@@ -66,6 +66,12 @@ 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 change url and add new header on clicking display keywords', async function () {