show browser version when running tests
This commit is contained in:
parent
4591b26dab
commit
b88dc0ffd5
2 changed files with 6 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
1
start.js
1
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,
|
||||
|
|
Loading…
Reference in a new issue