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