X-Git-Url: https://git.openstreetmap.org./nominatim-ui.git/blobdiff_plain/299cd3166ec51bcfddacf4133f21439b93547bd0..200f60bc3a38adc7ae5e9acbbbf0565b715bdb80:/test/details.js diff --git a/test/details.js b/test/details.js index dc907d0..377a1fd 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; @@ -155,7 +155,7 @@ describe('Details Page', function () { it('should display No Name, no keywords, no hierarchy', async function () { let page_content = await page.$eval('body', el => el.textContent); - assert.ok(page_content.includes('Name No Name')); + assert.ok(page_content.includes('NameNo Name')); if (!process.env.REVERSE_ONLY) { assert.ok(page_content.includes('Place has no keywords')); }