From: mtmail Date: Mon, 19 Apr 2021 22:59:00 +0000 (+0200) Subject: testcase that search result displays API and debug link (#134) X-Git-Url: https://git.openstreetmap.org/nominatim-ui.git/commitdiff_plain/e250669df71e37c421b2273fd959476b2c15b907?ds=sidebyside;hp=1b3d490bc7f144544630ddd8bad772754f0ebf4c testcase that search result displays API and debug link (#134) --- diff --git a/test/search.js b/test/search.js index 6d3420b..c6e6059 100644 --- a/test/search.js +++ b/test/search.js @@ -36,6 +36,11 @@ describe('Search Page', function () { assert.equal(await page.title(), 'Result for City of London | Nominatim Demo'); }); + it('should display the API request and debug URL', async function () { + let link_titles = await page.$$eval('#api-request a', links => links.map(l => l.innerHTML)); + assert.deepEqual(link_titles, ['API request', 'debug output']); + }); + it('should display a map', async function () { await page.waitForSelector('#map'); assert.equal((await page.$$('#map')).length, 1);