X-Git-Url: https://git.openstreetmap.org/nominatim-ui.git/blobdiff_plain/52521128a144a4e42653e0bf8c6a6f0fddb8a6bc..0f87b4b80166f1b46bb5a8ff079df1644ecceb90:/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); });