X-Git-Url: https://git.openstreetmap.org./nominatim-ui.git/blobdiff_plain/d66a65e04139037b0418b962e2b6ac1c9c032adf..f9ae81bddd61b9749df987e6c8ee9263ae464705:/test/details.js diff --git a/test/details.js b/test/details.js index fb79f4d..2f9f174 100644 --- a/test/details.js +++ b/test/details.js @@ -68,7 +68,7 @@ describe('Details Page', function () { let display_headers; let [display_keywords_btn] = await page.$x("//a[contains(text(), 'display keywords')]"); - await display_keywords_btn.click(); + await display_keywords_btn.evaluate(node => node.click()); await page.waitForNavigation(); current_url = new URL(await page.url()); @@ -86,7 +86,7 @@ describe('Details Page', function () { let current_url; let [child_places_btn] = await page.$x("//a[contains(text(), 'display child places')]"); - await child_places_btn.click(); + await child_places_btn.evaluate(node => node.click()); await page.waitForNavigation(); await page.waitForSelector('table#address');