X-Git-Url: https://git.openstreetmap.org./nominatim-ui.git/blobdiff_plain/c0d1fb859fee050373df1fa77d03cb2c1a8cde91..e85db969c0ac2c288ddc4af47ab033fe08f2f56c:/test/reverse.js?ds=inline 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'); }); });