]> git.openstreetmap.org Git - nominatim-ui.git/commitdiff
testcase that search result displays API and debug link (#134)
authormtmail <mtmail@gmx.net>
Mon, 19 Apr 2021 22:59:00 +0000 (00:59 +0200)
committerGitHub <noreply@github.com>
Mon, 19 Apr 2021 22:59:00 +0000 (00:59 +0200)
test/search.js

index 6d3420ba2dc218e7f98e1a6ee30dd5cb6f180b5b..c6e6059e579d819387e44d28cf8abcbf0c3dcbe8 100644 (file)
@@ -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);