show browser version when running tests

This commit is contained in:
Bruno Windels 2019-04-09 15:45:16 +02:00
parent 4591b26dab
commit b88dc0ffd5
2 changed files with 6 additions and 1 deletions

View file

@ -22,8 +22,14 @@ const lazyLoadingScenarios = require('./scenarios/lazy-loading');
const e2eEncryptionScenarios = require('./scenarios/e2e-encryption'); const e2eEncryptionScenarios = require('./scenarios/e2e-encryption');
module.exports = async function scenario(createSession, restCreator) { module.exports = async function scenario(createSession, restCreator) {
let firstUser = true;
async function createUser(username) { async function createUser(username) {
const session = await createSession(username); const session = await createSession(username);
if (firstUser) {
// only show browser version for first browser opened
console.log(`running tests on ${await session.browser.version()} ...`);
firstUser = false;
}
await signup(session, session.username, 'testtest', session.hsUrl); await signup(session, session.username, 'testtest', session.hsUrl);
return session; return session;
} }

View file

@ -35,7 +35,6 @@ const hsUrl = 'http://localhost:5005';
async function runTests() { async function runTests() {
let sessions = []; let sessions = [];
console.log("running tests ...");
const options = { const options = {
slowMo: program.slowMo ? 20 : undefined, slowMo: program.slowMo ? 20 : undefined,
devtools: program.devTools, devtools: program.devTools,