X-Git-Url: https://git.openstreetmap.org./nominatim-ui.git/blobdiff_plain/a4d91ff557a71d80f997b03b213acf1664e64ace..7ed97d6aceab15f29088f45aa6fbf1eda551173d:/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'); }); });