From b88dc0ffd5dc492c44e508b65c3a10e81fbb54b4 Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Tue, 9 Apr 2019 15:45:16 +0200 Subject: [PATCH] show browser version when running tests --- src/scenario.js | 6 ++++++ start.js | 1 - 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/scenario.js b/src/scenario.js index 6176d3a171..cd818fd7bc 100644 --- a/src/scenario.js +++ b/src/scenario.js @@ -22,8 +22,14 @@ const lazyLoadingScenarios = require('./scenarios/lazy-loading'); const e2eEncryptionScenarios = require('./scenarios/e2e-encryption'); module.exports = async function scenario(createSession, restCreator) { + let firstUser = true; async function createUser(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); return session; } diff --git a/start.js b/start.js index ab710664ec..87a21d565c 100644 --- a/start.js +++ b/start.js @@ -35,7 +35,6 @@ const hsUrl = 'http://localhost:5005'; async function runTests() { let sessions = []; - console.log("running tests ..."); const options = { slowMo: program.slowMo ? 20 : undefined, devtools: program.devTools,