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');
|
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;
|
||||||
}
|
}
|
||||||
|
|
1
start.js
1
start.js
|
@ -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,
|
||||||
|
|
Loading…
Reference in a new issue