From: mtmail Date: Thu, 13 Jan 2022 13:13:41 +0000 (+0100) Subject: Replace test city-of-london with Paris (#170) X-Git-Url: https://git.openstreetmap.org./nominatim-ui.git/commitdiff_plain/80af819472296d1164d20772ff4f8db2afced1ed?hp=0aa28e47e87fc78e152de7f1750e97ccf260c595 Replace test city-of-london with Paris (#170) Replace test city-of-london with Paris --- diff --git a/test/search.js b/test/search.js index 59fc2eb..e205b0c 100644 --- a/test/search.js +++ b/test/search.js @@ -59,11 +59,11 @@ describe('Search Page', function () { }); }); - describe('Search for City of London', function () { + describe('Search for Paris', function () { before(async function () { page = await browser.newPage(); await page.goto('http://localhost:9999/search.html'); - await page.type('input[name=q]', 'City of London'); + await page.type('input[name=q]', 'Paris'); await page.click('button[type=submit]'); await page.waitForSelector('#searchresults'); // await page.screenshot({ path: "./screen.png", fullPage: true }); @@ -74,12 +74,12 @@ describe('Search Page', function () { }); it('should have a HTML page title', async function () { - assert.equal(await page.title(), 'Result for City of London | Nominatim Demo'); + assert.equal(await page.title(), 'Result for Paris | Nominatim Demo'); }); it('should have added search params', async function () { let current_url = new URL(await page.url()); - assert.strictEqual(current_url.searchParams.get('q'), 'City of London'); + assert.strictEqual(current_url.searchParams.get('q'), 'Paris'); }); it('should atleast one result', async function () { @@ -128,7 +128,7 @@ describe('Search Page', function () { await page.waitForSelector('.container h1'); page_header = await page.$eval('.container h1', el => el.textContent); - assert.ok(page_header.includes('City of London')); + assert.ok(page_header.includes('Paris')); }); }); });