]> git.openstreetmap.org Git - nominatim-ui.git/blob - test/status.spec.js
Rebundle latest version
[nominatim-ui.git] / test / status.spec.js
1 import { test, expect } from './shared.js';
2
3 test.describe('Status Page', () => {
4   let page;
5
6   test.beforeAll(async ({ browser }) => {
7     page = await browser.newPage();
8     await page.goto('/status.html', { waitUntil: 'networkidle' });
9   });
10
11   test.afterAll(async () => {
12     await page.close();
13   });
14
15   test('should have software version', async () => {
16     await page.waitForFunction(
17       () => document.body.textContent.match(/Software version.*\d+\.\d+/),
18       { timeout: 10000 }
19     );
20
21     const status_details = await page.evaluate(
22       () => document.body.textContent.match(/Software version.*\d+\.\d+/)
23     );
24
25     expect(status_details[0]).not.toContain('undefined');
26   });
27 });