]> git.openstreetmap.org Git - nominatim-ui.git/blobdiff - test/search.js
correct various typos
[nominatim-ui.git] / test / search.js
index 3470814676d4d9e2a5912fc75433ddef8e70dca8..e87ed0e41d723eec2ab66e891c85fbb1f1204fbb 100644 (file)
@@ -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);
     });