X-Git-Url: https://git.openstreetmap.org./nominatim-ui.git/blobdiff_plain/52521128a144a4e42653e0bf8c6a6f0fddb8a6bc..f8e7737567b4d629cd3bc0524abdadcc06d7b3aa:/test/search.js diff --git a/test/search.js b/test/search.js index 3470814..e87ed0e 100644 --- a/test/search.js +++ b/test/search.js @@ -82,13 +82,15 @@ describe('Search Page', function () { assert.strictEqual(current_url.searchParams.get('q'), 'Paris'); }); - it('should atleast one result', async function () { + it('should have at least one result', async function () { let results_count = await page.$$eval('#searchresults .result', elements => elements.length); assert.ok(results_count > 1); }); it('should have show more results button', async function () { - let [search_more_btn] = await page.$x("//a[contains(text(), 'Search for more results')]"); + let [search_more_btn] = await page.$$( + "xpath/.//a[contains(text(), 'Search for more results')]" + ); assert.ok(search_more_btn); });