-
-
Notifications
You must be signed in to change notification settings - Fork 163
/
test.js
25 lines (23 loc) · 653 Bytes
/
test.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
const { chromium } = require('playwright');
let browser;
let page;
beforeAll(async () => {
browser = await chromium.launch();
});
afterAll(async () => {
await browser.close();
});
beforeEach(async () => {
page = await browser.newPage();
});
afterEach(async () => {
await page.close();
});
it('Solr-PHP-UI available via Apache, since Title is search', async () => {
await page.goto('http://apps/search');
expect(await page.title()).toBe('Search');
});
it('Open Semantic Search APPS available via Apache', async () => {
await page.goto('http://apps/search-apps/datasources/');
expect(await page.content()).toMatch('<h1>Queue</h1>');
});