X-Git-Url: https://git.openstreetmap.org./nominatim-ui.git/blobdiff_plain/c0d1fb859fee050373df1fa77d03cb2c1a8cde91..2917597e509685bf998ac51ca4391a2e293e00a9:/test/reverse.js diff --git a/test/reverse.js b/test/reverse.js index 09e9f36..5641a1a 100644 --- a/test/reverse.js +++ b/test/reverse.js @@ -1,4 +1,4 @@ -const assert = require('assert'); +import assert from 'assert'; describe('Reverse Page', function () { let page; @@ -64,10 +64,9 @@ describe('Reverse Page', function () { let results = await page.$$('#searchresults .result a'); await results[0].click(); - await page.waitForNavigation(); + await page.waitForSelector('table#address'); current_url = new URL(await page.url()); - assert.deepStrictEqual(current_url.pathname, '/details.html'); }); });