Skip to content
Snippets Groups Projects
Verified Commit 3b5565b0 authored by Volker Schukai's avatar Volker Schukai :alien:
Browse files

fix: wip web tests

parent b8f2d5a2
No related branches found
No related tags found
No related merge requests found
......@@ -36,15 +36,20 @@ if (!config.browser) {
timeout: 0
});
const page = await browser.newPage();
const fileUrl = 'file://' + config.path;
console.log('Loading page... '+fileUrl);
await page.goto(fileUrl);
console.log('Running tests...');
const title = await page.title();
console.log('Page title:', title);
const searchResultSelector = '#mocha-done';
await page.waitForSelector(searchResultSelector);
console.log('Running tests...');
await page.waitForFunction('document.getElementById("mocha-done").textContent.length > 0');
const passes = await page.evaluate(() => document.getElementById('mocha-stats').querySelector('li.passes').textContent);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment