]> git.openstreetmap.org Git - nominatim-ui.git/commitdiff
detail page: add country to postcode -search by name- link
authormarc tobias <mtmail@gmx.net>
Thu, 4 Apr 2024 21:59:59 +0000 (23:59 +0200)
committermtmail <mtmail@gmx.net>
Fri, 5 Apr 2024 09:06:44 +0000 (11:06 +0200)
test/details.js

index dc907d0b01cca27ad360583531a34d19722f60ee..a6fd5e58068847e851df5fa284d67b66e9ebd467 100644 (file)
@@ -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;